diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-13 17:42:34 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-13 17:42:34 +0000 |
commit | faa20c7f41e38bb14a8c025c6de9a7ddef0a6340 (patch) | |
tree | fa8bbbcdf9058bcf7e998c09765153ba404cb358 /tools/ccc/ccclib/Driver.py | |
parent | f99f1d022614200f04a94f0fc5586aa2f5e6226d (diff) |
ccc: Suffix for PCH files is appended, not replaced.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64466 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/Driver.py')
-rw-r--r-- | tools/ccc/ccclib/Driver.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py index cda016153e..43e145b9db 100644 --- a/tools/ccc/ccclib/Driver.py +++ b/tools/ccc/ccclib/Driver.py @@ -802,10 +802,13 @@ class Driver(object): if phase.type is Types.ImageType: namedOutput = "a.out" else: - inputName = args.getValue(baseInput) - base,_ = os.path.splitext(inputName) assert phase.type.tempSuffix is not None - namedOutput = base + '.' + phase.type.tempSuffix + inputName = args.getValue(baseInput) + if phase.type.appendSuffix: + namedOutput = inputName + '.' + phase.type.tempSuffix + else: + base,_ = os.path.splitext(inputName) + namedOutput = base + '.' + phase.type.tempSuffix # Output to user requested destination? if atTopLevel and finalOutput: |