[cfe-commits] r168603 - /cfe/trunk/utils/analyzer/SATestBuild.py
Jordan Rose
jordan_rose at apple.com
Mon Nov 26 11:59:57 PST 2012
Author: jrose
Date: Mon Nov 26 13:59:57 2012
New Revision: 168603
URL: http://llvm.org/viewvc/llvm-project?rev=168603&view=rev
Log:
[analyzer] SATestBuild.py: allow make builds to disable parallelization
Before, SATestBuild unilaterally added '-j<n>' to every project built with
'make'. Now, we check and see if there's a -j option already specified, which
allows a project to explicitly be marked '-j1'.
Modified:
cfe/trunk/utils/analyzer/SATestBuild.py
Modified: cfe/trunk/utils/analyzer/SATestBuild.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/SATestBuild.py?rev=168603&r1=168602&r2=168603&view=diff
==============================================================================
--- cfe/trunk/utils/analyzer/SATestBuild.py (original)
+++ cfe/trunk/utils/analyzer/SATestBuild.py Mon Nov 26 13:59:57 2012
@@ -213,7 +213,8 @@
# If using 'make', auto imply a -jX argument
# to speed up analysis. xcodebuild will
# automatically use the maximum number of cores.
- if Command.startswith("make ") or Command == "make":
+ if (Command.startswith("make ") or Command == "make") and \
+ "-j" not in Command:
Command += " -j%d" % Jobs
SBCommand = SBPrefix + Command
if Verbose == 1:
More information about the cfe-commits
mailing list