I meant to add that you can see how we've done this for -cc1 and -cc1as in ExecuteCC1Tool of clang/tools/driver/driver.cpp. http://reviews.llvm.org/D8397 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/