diff options
Diffstat (limited to 'tools/driver')
-rw-r--r-- | tools/driver/cc1_main.cpp | 1 | ||||
-rw-r--r-- | tools/driver/driver.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/driver/cc1_main.cpp b/tools/driver/cc1_main.cpp index 294a680..0b108ae 100644 --- a/tools/driver/cc1_main.cpp +++ b/tools/driver/cc1_main.cpp @@ -74,6 +74,7 @@ static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { case GeneratePCH: return new GeneratePCHAction(); case GeneratePTH: return new GeneratePTHAction(); case InheritanceView: return new InheritanceViewAction(); + case InitOnly: return new InitOnlyAction(); case ParseNoop: return new ParseOnlyAction(); case ParsePrintCallbacks: return new PrintParseAction(); case ParseSyntaxOnly: return new SyntaxOnlyAction(); diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index 46f4124..2108c8f 100644 --- a/tools/driver/driver.cpp +++ b/tools/driver/driver.cpp @@ -218,6 +218,11 @@ int main(int argc, const char **argv) { llvm::OwningPtr<Compilation> C; + // Handle CC_PRINT_OPTIONS and CC_PRINT_OPTIONS_FILE. + TheDriver.CCPrintOptions = !!::getenv("CC_PRINT_OPTIONS"); + if (TheDriver.CCPrintOptions) + TheDriver.CCPrintOptionsFilename = ::getenv("CC_PRINT_OPTIONS_FILE"); + // Handle QA_OVERRIDE_GCC3_OPTIONS and CCC_ADD_ARGS, used for editing a // command line behind the scenes. std::set<std::string> SavedStrings; |