diff options
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/shared.py b/tools/shared.py index 7aaa4136..eda58304 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -706,10 +706,8 @@ if USE_EMSDK: path_from_root('system', 'include', 'compat'), path_from_root('system', 'include'), path_from_root('system', 'include', 'emscripten'), - path_from_root('system', 'include', 'bsd'), # posix stuff path_from_root('system', 'include', 'libc'), path_from_root('system', 'include', 'gfx'), - path_from_root('system', 'include', 'net'), path_from_root('system', 'include', 'SDL'), ] @@ -1426,12 +1424,17 @@ class Building: settings = Settings.serialize() args = settings + extra_args if WINDOWS: - args = ['@' + response_file.create_response_file(args, TEMP_DIR)] + rsp_file = response_file.create_response_file(args, TEMP_DIR) + args = ['@' + rsp_file] cmdline = [PYTHON, EMSCRIPTEN, filename + ('.o.ll' if append_ext else ''), '-o', filename + '.o.js'] + args if jsrun.TRACK_PROCESS_SPAWNS: logging.info('Executing emscripten.py compiler with cmdline "' + ' '.join(cmdline) + '"') jsrun.timeout_run(Popen(cmdline, stdout=PIPE), None, 'Compiling') + # Clean up .rsp file the compiler used after we are finished. + if WINDOWS: + try_delete(rsp_file) + # Detect compilation crashes and errors assert os.path.exists(filename + '.o.js'), 'Emscripten failed to generate .js' |