aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@chromium.org>2019-12-18 15:00:15 +0100
committerHans Wennborg <hans@chromium.org>2019-12-18 15:07:43 +0100
commitd129aa1d5369781deff6c6b854cb612e160d3fb2 (patch)
tree409ab8a08d2cdaab434a23df0d7e1f6442d2d4a9 /clang/lib/Frontend/CompilerInvocation.cpp
parent5e5e99c041e48a69615eefd123dac23d9d0c7f73 (diff)
downloadllvm-d129aa1d5369781deff6c6b854cb612e160d3fb2.zip
llvm-d129aa1d5369781deff6c6b854cb612e160d3fb2.tar.gz
llvm-d129aa1d5369781deff6c6b854cb612e160d3fb2.tar.bz2
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/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 8631536e..d68244d 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1887,6 +1887,7 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
Opts.ModulesEmbedFiles = Args.getAllArgValues(OPT_fmodules_embed_file_EQ);
Opts.ModulesEmbedAllFiles = Args.hasArg(OPT_fmodules_embed_all_files);
Opts.IncludeTimestamps = !Args.hasArg(OPT_fno_pch_timestamp);
+ Opts.UseTemporary = !Args.hasArg(OPT_fno_temp_file);
Opts.CodeCompleteOpts.IncludeMacros
= Args.hasArg(OPT_code_completion_macros);