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
This commit is contained in:
Daniel Dunbar 2009-01-12 07:48:07 +00:00
Родитель 9cb225333f
Коммит 3235fdb001
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -675,7 +675,7 @@ class Driver(object):
output = finalOutput output = finalOutput
# Contruct a named destination? # Contruct a named destination?
elif atTopLevel or hasSaveTemps: elif atTopLevel or hasSaveTemps:
output = args.makeSeparateArg(namedOutput, output = args.makeSeparateArg(os.path.basename(namedOutput),
self.parser.oOption) self.parser.oOption)
else: else:
# Output to temp file... # Output to temp file...