2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-26 20:01:13 +01:00

Issue 1329 C# response file flag quoting issues

This commit is contained in:
Thomas Nagy 2013-06-21 18:22:00 +02:00
parent 3f78d2223a
commit 5ea64b56ac

View File

@ -161,7 +161,7 @@ class mcs(Task.Task):
if flag.find(' ') > -1:
for x in ('/r:', '/reference:', '/resource:', '/lib:', '/out:'):
if flag.startswith(x):
flag = '%s"%s"' % (x, flag[len(x):])
flag = '%s"%s"' % (x, '","'.join(flag[len(x):].split(',')))
break
else:
flag = '"%s"' % flag