mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 18:36:05 +00:00
ccc: @<filename> arguments are only treated specially if <filename>
exists, otherwise gcc just treats as an input. - PR3591 llvm-svn: 64640
This commit is contained in:
parent
75a45ba2a4
commit
a1c37501ed
@ -1,3 +1,4 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
@ -1114,8 +1115,13 @@ class OptionParser:
|
|||||||
# still take them as arguments).
|
# still take them as arguments).
|
||||||
pass
|
pass
|
||||||
elif a[0] == '@':
|
elif a[0] == '@':
|
||||||
# FIXME: Handle '@'
|
# @<filename> is only an argument list if it actually
|
||||||
raise InvalidArgumentsError('@ style argument lists are unsupported')
|
# 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 != '-':
|
elif a[0] == '-' and a != '-':
|
||||||
args.append(self.lookupOptForArg(i, a, it))
|
args.append(self.lookupOptForArg(i, a, it))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user