MCPcopy Create free account
hub / github.com/emscripten-core/emsdk / build_env

Function build_env

emsdk.py:912–924  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

910
911
912def build_env():
913 env = os.environ.copy()
914
915 # To work around a build issue with older Mac OS X builds, add -stdlib=libc++ to all builds.
916 # See https://groups.google.com/forum/#!topic/emscripten-discuss/5Or6QIzkqf0
917 if MACOS:
918 env['CXXFLAGS'] = ((env['CXXFLAGS'] + ' ') if hasattr(env, 'CXXFLAGS') else '') + '-stdlib=libc++'
919 if WINDOWS:
920 # MSBuild.exe has an internal mechanism to avoid N^2 oversubscription of threads in its two-tier build model, see
921 # https://devblogs.microsoft.com/cppblog/improved-parallelism-in-msbuild/
922 env['UseMultiToolTask'] = 'true'
923 env['EnforceProcessCountAcrossBuilds'] = 'true'
924 return env
925
926
927# Find path to cmake executable, as one of the activated tools, in PATH, or from installed tools.

Callers 2

make_buildFunction · 0.85
cmake_configureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected