fix 'object generator' test case for ninja
The ninja backend uses the '/MDd' switch when the tests are run, which results in LNK4098 error, because the generator does not use the same version of the Windows runtime library.
This commit is contained in:
parent
32b43e77ab
commit
1196532c0b
|
@ -12,7 +12,7 @@ if __name__ == '__main__':
|
|||
ifile = sys.argv[2]
|
||||
ofile = sys.argv[3]
|
||||
if compiler.endswith('cl'):
|
||||
cmd = [compiler, '/nologo', '/Fo'+ofile, '/c', ifile]
|
||||
cmd = [compiler, '/nologo', '/MDd', '/Fo'+ofile, '/c', ifile]
|
||||
else:
|
||||
cmd = [compiler, '-c', ifile, '-o', ofile]
|
||||
sys.exit(subprocess.call(cmd))
|
||||
|
|
Loading…
Reference in New Issue