diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-18 17:58:05 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-18 17:58:05 -0700 |
commit | 02bfd23069dc03e65a6501fdd8ced078341d667c (patch) | |
tree | 8371f58d5ba838ca227ac2b5e029d2e90baa64e7 /tools | |
parent | ae64d8fef1a7eca5a36da12a7c6ade70f127cf3e (diff) | |
parent | bcb44e22e30d07dbbcaa4683e6b43f534227703c (diff) |
Merge pull request #1536 from juj/fix_rsp_file_escaping_windows
Fix rsp file escaping on Windows.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/response_file.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/response_file.py b/tools/response_file.py index 312cda73..f19cf8af 100644 --- a/tools/response_file.py +++ b/tools/response_file.py @@ -6,8 +6,8 @@ def create_response_file(args, directory): (response_fd, response_filename) = tempfile.mkstemp(prefix='emscripten_', suffix='.rsp', dir=directory, text=True) response_fd = os.fdopen(response_fd, "w") #print >> sys.stderr, "Creating response file '%s'" % response_filename - args = map(lambda p: p.replace(' ', '').replace('\\', '\\\\').replace('"', '\\"'), args) - response_fd.write(' '.join(args)) + args = map(lambda p: p.replace('\\', '\\\\').replace('"', '\\"'), args) + response_fd.write('"' + '" "'.join(args) + '"') response_fd.close() return response_filename |