From 4cc715b13d443ecbe30cc215ae6f61712df19a2b Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant <“bsergean@gmail.com”> Date: Fri, 19 Apr 2019 11:58:02 -0700 Subject: [PATCH] Windows nmake does not have a -j flag --- test/run.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/run.py b/test/run.py index 8eb54a01..dde38a5f 100755 --- a/test/run.py +++ b/test/run.py @@ -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