summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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", [])