diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-01-20 05:49:32 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-20 05:49:32 +0000 |
| commit | 8bc09f4085d68d4597d096c07e76ae34ad9045c1 (patch) | |
| tree | fceaf9bc00d67658aa6d623099b4f6954d77c6b4 /clang/tools/ccc | |
| parent | 00447933f6654ed83434cc06c68acd33b375bb0f (diff) | |
| download | bcm5719-llvm-8bc09f4085d68d4597d096c07e76ae34ad9045c1.tar.gz bcm5719-llvm-8bc09f4085d68d4597d096c07e76ae34ad9045c1.zip | |
ccc: PCH generation doesn't strip the path when generating a derived
filename from the input path.
llvm-svn: 62569
Diffstat (limited to 'clang/tools/ccc')
| -rw-r--r-- | clang/tools/ccc/ccclib/Driver.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/tools/ccc/ccclib/Driver.py b/clang/tools/ccc/ccclib/Driver.py index 96225664f42..42a789b61a2 100644 --- a/clang/tools/ccc/ccclib/Driver.py +++ b/clang/tools/ccc/ccclib/Driver.py @@ -720,7 +720,13 @@ class Driver(object): output = finalOutput # Contruct a named destination? elif atTopLevel or hasSaveTemps: - output = args.makeSeparateArg(os.path.basename(namedOutput), + # As an annoying special case, pch generation + # doesn't strip the pathname. + if phase.type is Types.PCHType: + outputName = namedOutput + else: + outputName = os.path.basename(namedOutput) + output = args.makeSeparateArg(outputName, self.parser.oOption) else: # Output to temp file... |

