2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

Allow /noconfig to be used with csc

This commit is contained in:
Seth Hinze 2017-05-31 14:15:46 -07:00 committed by Thomas Nagy
parent a3b6d7dcac
commit 1d99aed103

View File

@ -124,10 +124,16 @@ class mcs(Task.Task):
color = 'YELLOW'
run_str = '${MCS} ${CSTYPE} ${CSFLAGS} ${ASS_ST:ASSEMBLIES} ${RES_ST:RESOURCES} ${OUT} ${SRC}'
def exec_command(self, cmd, **kw):
if '/noconfig' in cmd:
raise ValueError('/noconfig is not allowed when using response files, check your flags!')
return super(self.__class__, self).exec_command(cmd, **kw)
def split_argfile(self, cmd):
inline = [cmd[0]]
infile = []
for x in cmd[1:]:
# csc doesn't want /noconfig in @file
if x.lower() == '/noconfig':
inline.append(x)
else:
infile.append(self.quote_flag(x))
return (inline, infile)
def configure(conf):
"""