diff options
author | Daniel Dunbar <daniel@zuster.org> | 2012-03-03 00:36:02 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2012-03-03 00:36:02 +0000 |
commit | b9c62c0773757562b1abed808c5441e52fc0b77c (patch) | |
tree | a1d50e1fcdca5fef72f8bd4b6ce8fd88a0e5d0a4 /clang/lib/Frontend/FrontendActions.cpp | |
parent | 62a58f492801b199fde60fea9a9fd7f5e5ce8ed4 (diff) | |
download | llvm-b9c62c0773757562b1abed808c5441e52fc0b77c.zip llvm-b9c62c0773757562b1abed808c5441e52fc0b77c.tar.gz llvm-b9c62c0773757562b1abed808c5441e52fc0b77c.tar.bz2 |
Frontend: Don't automatically create missing directories when using temporary files with createOutputFile()
- This would otherwise happen as a side effect of llvm::sys::fs::unique_file creating parent directories.
llvm-svn: 151960
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 96b0b83..a4e168b 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -340,7 +340,8 @@ bool GenerateModuleAction::ComputeASTConsumerArguments(CompilerInstance &CI, // We use a temporary to avoid race conditions. OS = CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true, /*RemoveFileOnSignal=*/false, InFile, - /*Extension=*/"", /*useTemporary=*/true); + /*Extension=*/"", /*useTemporary=*/true, + /*CreateMissingDirectories=*/true); if (!OS) return true; |