[cfe-commits] r64640 - /cfe/trunk/tools/ccc/ccclib/Arguments.py
Daniel Dunbar
daniel at zuster.org
Mon Feb 16 10:18:45 PST 2009
Author: ddunbar
Date: Mon Feb 16 12:18:43 2009
New Revision: 64640
URL: http://llvm.org/viewvc/llvm-project?rev=64640&view=rev
Log:
ccc: @<filename> arguments are only treated specially if <filename>
exists, otherwise gcc just treats as an input.
- PR3591
Modified:
cfe/trunk/tools/ccc/ccclib/Arguments.py
Modified: cfe/trunk/tools/ccc/ccclib/Arguments.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/ccc/ccclib/Arguments.py?rev=64640&r1=64639&r2=64640&view=diff
==============================================================================
--- cfe/trunk/tools/ccc/ccclib/Arguments.py (original)
+++ cfe/trunk/tools/ccc/ccclib/Arguments.py Mon Feb 16 12:18:43 2009
@@ -1,3 +1,4 @@
+import os
###
@@ -1114,8 +1115,13 @@
# still take them as arguments).
pass
elif a[0] == '@':
- # FIXME: Handle '@'
- raise InvalidArgumentsError('@ style argument lists are unsupported')
+ # @<filename> is only an argument list if it actually
+ # exists, otherwise it is treated like an input.
+ if os.path.exists(a[1:]):
+ # FIXME: Handle '@'
+ raise InvalidArgumentsError('@ style argument lists are unsupported')
+ else:
+ args.append(PositionalArg(i, self.inputOption))
elif a[0] == '-' and a != '-':
args.append(self.lookupOptForArg(i, a, it))
else:
More information about the cfe-commits
mailing list