diff options
author | Hans Wennborg <hans@chromium.org> | 2019-12-18 15:00:15 +0100 |
---|---|---|
committer | Hans Wennborg <hans@chromium.org> | 2019-12-18 15:07:43 +0100 |
commit | d129aa1d5369781deff6c6b854cb612e160d3fb2 (patch) | |
tree | 409ab8a08d2cdaab434a23df0d7e1f6442d2d4a9 /clang/lib/Frontend/FrontendActions.cpp | |
parent | 5e5e99c041e48a69615eefd123dac23d9d0c7f73 (diff) | |
download | bcm5719-llvm-d129aa1d5369781deff6c6b854cb612e160d3fb2.tar.gz bcm5719-llvm-d129aa1d5369781deff6c6b854cb612e160d3fb2.zip |
Add an -fno-temp-file flag for compilation
Our build system does not handle randomly named files created during
the build well. We'd prefer to write compilation output directly
without creating a temporary file. Function parameters already
existed to control this behavior but were not exposed all the way out
to the command line.
Patch by Zachary Henkel!
Differential revision: https://reviews.llvm.org/D70615
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index aeea63ca323..1dbfad06a71 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -140,7 +140,7 @@ GeneratePCHAction::CreateOutputFile(CompilerInstance &CI, StringRef InFile, std::unique_ptr<raw_pwrite_stream> OS = CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true, /*RemoveFileOnSignal=*/false, InFile, - /*Extension=*/"", /*UseTemporary=*/true); + /*Extension=*/"", CI.getFrontendOpts().UseTemporary); if (!OS) return nullptr; |