diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-01-03 09:42:01 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-01-03 09:42:01 (GMT) |
commit | 09400aab33c46b7136bf7d0fab149641578e3c77 (patch) | |
tree | ef06dbfface3254e9120f0acdc3bddf14c57d1be /SConstruct | |
parent | 82c3bfe050df44dca8c51fe6b35f85f66abe6424 (diff) | |
download | swift-09400aab33c46b7136bf7d0fab149641578e3c77.zip swift-09400aab33c46b7136bf7d0fab149641578e3c77.tar.bz2 |
Catch problem when multiprocessing module isn't supported in Python.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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", []) |