build: enable nothreads workaround only with WAF_NOTHREADS=1
[samba.git] / buildtools / wafsamba / nothreads.py
index d227ce1a973f451c03e9f721d6f175f3ec3874ed..9054a57af5b91fd0bc50c9ab986834f9dee1d915 100644 (file)
@@ -213,8 +213,7 @@ class Parallel(object):
                assert (self.count == 0 or self.stop)
 
 
-# enable nothreads if -j1 is used from the makefile
-if os.environ.get('JOBS') == '1':
-       import Runner
-       Runner.process = process
-       Runner.Parallel = Parallel
+# enable nothreads
+import Runner
+Runner.process = process
+Runner.Parallel = Parallel