Skip to content

Commit

Permalink
Merge pull request #3109 from bdbaddog/pypy_enable_threading
Browse files Browse the repository at this point in the history
Reenable parallel builds with Pypy
  • Loading branch information
bdbaddog committed Mar 25, 2018
2 parents e7b15e2 + 3ddce3f commit 20927b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RELEASE 3.1.0.alpha.yyyymmdd - NEW DATE WILL BE INSERTED HERE
From William Deegan:
- Remove long deprecated SCons.Options code and tests. This removes BoolOption,EnumOption,
ListOption,PackageOption, and PathOption which have been replaced by *Variable() many years ago.
- Re-Enable parallel SCons (-j) when running via Pypy

From Andrew Featherstone
- Removed unused --warn options from the man page and source code.
Expand Down
4 changes: 3 additions & 1 deletion src/engine/SCons/Script/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import time
import traceback
import sysconfig
import platform

import SCons.CacheDir
import SCons.Debug
Expand Down Expand Up @@ -1253,7 +1254,8 @@ def order(dependencies):
BuildTask.options = options


python_has_threads = sysconfig.get_config_var('WITH_THREAD')
is_pypy = platform.python_implementation() == 'PyPy'
python_has_threads = sysconfig.get_config_var('WITH_THREAD') or is_pypy
# to check if python configured with threads.
global num_jobs
num_jobs = options.num_jobs
Expand Down

0 comments on commit 20927b4

Please sign in to comment.