llvm.org GIT mirror llvm / a0d3bcf
[lit] Use multiprocessing based parallelism by default, on Unix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193279 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 5 years ago
1 changed file(s) with 7 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
113113 #
114114 # FIXME: This is a hack.
115115 sys.setcheckinterval(1000)
116
117 # Use processes by default on Unix platforms.
118 isWindows = platform.system() == 'Windows'
119 useProcessesIsDefault = not isWindows
116120
117121 global options
118122 from optparse import OptionParser, OptionGroup
198202 action="store_true", default=False)
199203 group.add_option("", "--use-processes", dest="useProcesses",
200204 help="Run tests in parallel with processes (not threads)",
201 action="store_true", default=False)
205 action="store_true", default=useProcessesIsDefault)
202206 group.add_option("", "--use-threads", dest="useProcesses",
203207 help="Run tests in parallel with threads (not processes)",
204 action="store_false", default=False)
208 action="store_false", default=not useProcessesIsDefault)
205209 parser.add_option_group(group)
206210
207211 (opts, args) = parser.parse_args()
240244 valgrindArgs = opts.valgrindArgs,
241245 noExecute = opts.noExecute,
242246 debug = opts.debug,
243 isWindows = (platform.system()=='Windows'),
247 isWindows = isWindows,
244248 params = userParams,
245249 config_prefix = opts.configPrefix)
246250