Windows nmake does not have a -j flag

This commit is contained in:
Benjamin Sergeant 2019-04-19 11:58:02 -07:00
parent 0dfd7cd543
commit 4cc715b13d

View File

@ -365,10 +365,15 @@ def run(testName, buildDir, sanitizer, xmlOutput, testRunName, buildOnly, useLLD
# build with make
makeCmd = 'make'
jobs = '-j8'
if platform.system() == 'Windows':
makeCmd = 'nmake'
runCommand('{} -C {} -j8'.format(makeCmd, buildDir))
# nmake does not have a -j option
jobs = ''
runCommand('{} -C {} {}'.format(makeCmd, buildDir, jobs))
if buildOnly:
return