Author: ddunbar
Date: Mon Jan 19 23:49:32 2009
New Revision: 62569
URL: http://llvm.org/viewvc/llvm-project?rev=62569&view=rev
Log:
ccc: PCH generation doesn't strip the path when generating a derived
filename from the input path.
Modified:
cfe/trunk/tools/ccc/ccclib/Driver.py
Modified: cfe/trunk/tools/ccc/ccclib/Driver.py
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/ccclib/Driver.py?rev=62569&r1=62568&r2=62569&view=diff
==============================================================================
--- cfe/trunk/tools/ccc/ccclib/Driver.py (original)
+++ cfe/trunk/tools/ccc/ccclib/Driver.py Mon Jan 19 23:49:32 2009
@@ -720,7 +720,13 @@
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...
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits