diff --git a/emsdk b/emsdk index e177543..3cdd3fd 100755 --- a/emsdk +++ b/emsdk @@ -35,16 +35,16 @@ if os.name == 'nt': WINDOWS = True ENVPATH_SEPARATOR = ';' -LINUX = False -if platform.system() == 'Linux' or os.name == 'posix': - LINUX = True - ENVPATH_SEPARATOR = ':' - OSX = False if platform.mac_ver()[0] != '': OSX = True ENVPATH_SEPARATOR = ':' +LINUX = False +if not OSX and (platform.system() == 'Linux' or os.name == 'posix'): + LINUX = True + ENVPATH_SEPARATOR = ':' + CPU_CORES = max(multiprocessing.cpu_count()-1, 1) # Don't saturate all cores to not steal the whole system, but be aggressive. CMAKE_BUILD_TYPE_OVERRIDE = None