diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-15 17:10:22 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-15 17:10:22 -0700 |
commit | 314a0b90f1e0cacd8400dbc994818d3a32fc493c (patch) | |
tree | 2f11dd71d505e48012e7df8e55ce9c10850db140 | |
parent | 27d1a249622d33ab8aff2814d13569507336873b (diff) |
mark UTF_STRING_SUPPORT as an unsafe but useful opt, in -O3
-rwxr-xr-x | emcc | 1 | ||||
-rw-r--r-- | src/library.js | 2 | ||||
-rw-r--r-- | tools/shared.py | 1 |
3 files changed, 3 insertions, 1 deletions
@@ -191,6 +191,7 @@ Options that are modified or new in %s include: -s DOUBLE_MODE=0 -s PRECISE_I64_MATH=0 + -s UTF_STRING_SUPPORT=0 --closure 1 --llvm-lto 1 diff --git a/src/library.js b/src/library.js index 45187d8d..18f4702c 100644 --- a/src/library.js +++ b/src/library.js @@ -2638,7 +2638,7 @@ LibraryManager.library = { } return fields; }, - // Performs prtinf-style formatting. + // Performs printf-style formatting. // format: A pointer to the format string. // varargs: A pointer to the start of the arguments list. // Returns the resulting string string as a character array. diff --git a/tools/shared.py b/tools/shared.py index 81a8e053..7fc0421a 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -555,6 +555,7 @@ class Settings: # Aside from these, -O3 also runs closure compiler and llvm lto Settings.DOUBLE_MODE = 0 Settings.PRECISE_I64_MATH = 0 + Settings.UTF_STRING_SUPPORT = 0 if noisy: print >> sys.stderr, 'Warning: Applying some potentially unsafe optimizations! (Use -O2 if this fails.)' global Settings |