diff options
Diffstat (limited to 'clang/tools/ccc/ccclib/Driver.py')
| -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... |

