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/CompilerInstance.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/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 05ecc3f447c..688f21dd090 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -672,7 +672,7 @@ CompilerInstance::createDefaultOutputFile(bool Binary, StringRef InFile, StringRef Extension) { return createOutputFile(getFrontendOpts().OutputFile, Binary, /*RemoveFileOnSignal=*/true, InFile, Extension, - /*UseTemporary=*/true); + getFrontendOpts().UseTemporary); } std::unique_ptr<raw_pwrite_stream> CompilerInstance::createNullOutputFile() { |