aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-26 13:51:59 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-26 13:51:59 -0700
commitdc341c89d3521c27a41f0d65047096bc0f1f99d2 (patch)
treeba7add67361bbe3dd73955a391a0e94b628a8ab8 /emcc
parent4d0be84d50307689f6b15f9f4502255736e522db (diff)
deprecate llvm opts in non-ta2 modes
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc4
1 files changed, 4 insertions, 0 deletions
diff --git a/emcc b/emcc
index fb73ef6b..bd4f6808 100755
--- a/emcc
+++ b/emcc
@@ -1058,6 +1058,10 @@ try:
else:
raise Exception('unknown llvm target: ' + str(shared.LLVM_TARGET))
+ if shared.Settings.USE_TYPED_ARRAYS != 2 and llvm_opts > 0:
+ logging.warning('disabling LLVM optimizations, need typed arrays mode 2 for them')
+ llvm_opts = 0
+
## Compile source code to bitcode
logging.debug('compiling to bitcode')