aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-06-03 21:14:32 +0300
committerJukka Jylänki <jujjyl@gmail.com>2013-06-03 21:14:32 +0300
commit2559aa6e02b0a783fa1109c7cfbf6e89c54b73cf (patch)
treec48cdbbc1da61bbb0906a92bd6b3cbbc77e5d7a8
parentdc7a8850f18e722f03d1c02abb1518e6b80238a5 (diff)
Fix test_exported_response and test_asm_pgo on Windows.
-rwxr-xr-xemcc1
1 files changed, 1 insertions, 0 deletions
diff --git a/emcc b/emcc
index 65dec978..9feba1b1 100755
--- a/emcc
+++ b/emcc
@@ -995,6 +995,7 @@ try:
key, value = change.split('=')
if value[0] == '@':
value = '"@' + os.path.abspath(value[1:]) + '"'
+ value = value.replace('\\\\', '/').replace('\\', '/') # Convert backslash paths to forward slashes on Windows as well, since the JS compiler otherwise needs the backslashes escaped (alternative is to escape all input paths passing to JS, which feels clumsier to read)
exec('shared.Settings.' + key + ' = ' + value)
# Apply effects from settings