From 3235fdb001a578448defe64f9ca8bfac1bb75aeb Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 12 Jan 2009 07:48:07 +0000 Subject: [PATCH] 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 --- tools/ccc/ccclib/Driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...