aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-10 10:35:45 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-10 10:35:45 -0700
commit73fc3ffcb5bc50db4729b2a9e4565e26c1a462be (patch)
tree3bf1d1d6a31289b0aedff410f63ab01ac6e636bd
parent98a37e9e8eb6af4a9025640d86e65900eed89f54 (diff)
add FORCE_ALIGNED_MEMORY=1 to -O3
-rwxr-xr-xemcc4
-rw-r--r--tools/shared.py1
2 files changed, 4 insertions, 1 deletions
diff --git a/emcc b/emcc
index 8c528a46..4315219a 100755
--- a/emcc
+++ b/emcc
@@ -167,6 +167,7 @@ Options that are modified or new in %s include:
-O3 As -O2, plus dangerous optimizations that may
break the generated code! This adds
+ -s FORCE_ALIGNED_MEMORY=1
-s DOUBLE_MODE=0
-s PRECISE_I64_MATH=0
--closure 1
@@ -174,7 +175,8 @@ Options that are modified or new in %s include:
This is not recommended at all. A better idea
is to try each of these separately on top of
- -O2 to see what works. See the wiki for more
+ -O2 to see what works. See the wiki and
+ src/settings.js (for the -s options) for more
information.
-s OPTION=VALUE JavaScript code generation option passed
diff --git a/tools/shared.py b/tools/shared.py
index 0818f6b9..cc056074 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -678,6 +678,7 @@ class Settings:
Settings.RELOOP = 1
if opt_level >= 3:
# Aside from these, -O3 also runs closure compiler and llvm lto
+ Settings.FORCE_ALIGNED_MEMORY = 1
Settings.DOUBLE_MODE = 0
Settings.PRECISE_I64_MATH = 0
if noisy: logging.warning('Applying some potentially unsafe optimizations! (Use -O2 if this fails.)')