()
| 910 | |
| 911 | |
| 912 | def 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. |
no outgoing calls
no test coverage detected