aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-12 07:48:07 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-12 07:48:07 +0000
commit3235fdb001a578448defe64f9ca8bfac1bb75aeb (patch)
treee1d30c27cbe16254eaad8db8a7591baecb70efb1
parent9cb225333f98650cb5ef16c54a82946714460d36 (diff)
ccc: When constructing a named output, only use base name (not full
path). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62083 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/ccc/ccclib/Driver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py
index 983a52bd18..23bc10cb4e 100644
--- a/tools/ccc/ccclib/Driver.py
+++ b/tools/ccc/ccclib/Driver.py
@@ -675,7 +675,7 @@ class Driver(object):
output = finalOutput
# Contruct a named destination?
elif atTopLevel or hasSaveTemps:
- output = args.makeSeparateArg(namedOutput,
+ output = args.makeSeparateArg(os.path.basename(namedOutput),
self.parser.oOption)
else:
# Output to temp file...