diff options
author | Nico Weber <nicolasweber@gmx.de> | 2016-03-02 23:29:29 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2016-03-02 23:29:29 +0000 |
commit | 8ab9219295972362e7d53592d8172d26a5929465 (patch) | |
tree | 0e504220ff7a0427d46ca985197242653134c215 /clang/lib/Driver/Driver.cpp | |
parent | 840564973fe0019467a7187fc510b7b70e0aa4f7 (diff) | |
download | bcm5719-llvm-8ab9219295972362e7d53592d8172d26a5929465.tar.gz bcm5719-llvm-8ab9219295972362e7d53592d8172d26a5929465.zip |
clang-cl pch test: Instead of copying the input, use /Fp to not write into the test directory.
Also fix a bug with /Fp and absolute paths uncovered by this.
Follow-up to r262487.
llvm-svn: 262541
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 8965d3d6c3c..f8d6fc7770a 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -2246,7 +2246,7 @@ const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA, } // As an annoying special case, PCH generation doesn't strip the pathname. - if (JA.getType() == types::TY_PCH) { + if (JA.getType() == types::TY_PCH && !IsCLMode()) { llvm::sys::path::remove_filename(BasePath); if (BasePath.empty()) BasePath = NamedOutput; |