diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-26 12:36:51 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-26 12:36:51 -0500 |
commit | 54f71a8237cba633dba6bd12bd5167987a814792 (patch) | |
tree | 07c276e2420dddb3c97ea3cb0415a8b6d2e2e096 /emscripten.py | |
parent | 46c294f9983307ed35db019e11b16e00271a97bb (diff) |
allow adjusting # of cpu cores to use with EMCC_CORES
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index e64e11e7..fd9c8ba2 100755 --- a/emscripten.py +++ b/emscripten.py @@ -160,7 +160,7 @@ def emscript(infile, settings, outfile, libraries=[]): # Phase 2 - func - cores = multiprocessing.cpu_count() + cores = int(os.environ.get('EMCC_CORES') or multiprocessing.cpu_count()) assert cores >= 1 if cores > 1: intended_num_chunks = int(round(cores * NUM_CHUNKS_PER_CORE)) |