summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-01-03 09:42:01 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-01-03 09:42:01 (GMT)
commit09400aab33c46b7136bf7d0fab149641578e3c77 (patch)
treeef06dbfface3254e9120f0acdc3bddf14c57d1be /SConstruct
parent82c3bfe050df44dca8c51fe6b35f85f66abe6424 (diff)
downloadswift-contrib-09400aab33c46b7136bf7d0fab149641578e3c77.zip
swift-contrib-09400aab33c46b7136bf7d0fab149641578e3c77.tar.bz2
Catch problem when multiprocessing module isn't supported in Python.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 5 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 7024239..d90b712 100644
--- a/SConstruct
+++ b/SConstruct
@@ -56,8 +56,11 @@ def SConscript(*arguments, **keywords) :
# Max out the number of jobs
if env["max_jobs"] :
- import multiprocessing
- SetOption("num_jobs", multiprocessing.cpu_count())
+ try :
+ import multiprocessing
+ SetOption("num_jobs", multiprocessing.cpu_count())
+ except NotImplementedError :
+ pass
# Default compiler flags
env["CCFLAGS"] = env.get("ccflags", [])