()
| 87 | |
| 88 | |
| 89 | def clean_env(): |
| 90 | # building system libraries and ports should be hermetic in that it is not |
| 91 | # affected by things like EMCC_CFLAGS which the user may have set. |
| 92 | # At least one port also uses autoconf (harfbuzz) so we also need to clear |
| 93 | # CFLAGS/LDFLAGS which we don't want to affect the inner call to configure. |
| 94 | safe_env = os.environ.copy() |
| 95 | for opt in ['CPATH', 'C_INCLUDE_PATH', 'CPLUS_INCLUDE_PATH', 'OBJC_INCLUDE_PATH', |
| 96 | 'CFLAGS', 'CXXFLAGS', 'LDFLAGS', |
| 97 | 'EMCC_CFLAGS', |
| 98 | 'EMCC_AUTODEBUG', |
| 99 | 'EMCC_FORCE_STDLIBS', |
| 100 | 'EMCC_ONLY_FORCED_STDLIBS', |
| 101 | 'EMMAKEN_JUST_CONFIGURE']: |
| 102 | if opt in safe_env: |
| 103 | del safe_env[opt] |
| 104 | return safe_env |
| 105 | |
| 106 | |
| 107 | def run_build_commands(commands, num_inputs, cwd=None): |
no test coverage detected