aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-03 12:10:41 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-03 12:10:41 -0800
commit95feb649fe2eee3fb8560d863cc48d5250de2417 (patch)
tree0e33b25eec8a1c8582bf5cfdeb601ce26b941901
parent37542062db855b3176eb27025196f02290f9fb83 (diff)
warn about ASM_JS
-rwxr-xr-xemcc1
-rw-r--r--src/settings.js4
2 files changed, 4 insertions, 1 deletions
diff --git a/emcc b/emcc
index c2b10862..8aae6be1 100755
--- a/emcc
+++ b/emcc
@@ -1144,6 +1144,7 @@ try:
if DEBUG: save_intermediate('transformed')
if shared.Settings.ASM_JS: # XXX temporary wrapping for testing purposes
+ print >> sys.stderr, 'emcc: ASM_JS mode is highly experimental, and will not work on most codebases yet. It is NOT recommended that you try this yet.'
unwrapped = open(final).read()
final += '.asmwrap.js'
open(final, 'w').write('''
diff --git a/src/settings.js b/src/settings.js
index 3d32db9e..c530b083 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -301,7 +301,9 @@ var HEADLESS = 0; // If 1, will include shim code that tries to 'fake' a browser
// very partial - it is hard to fake a whole browser! - so
// keep your expectations low for this to work.
-var ASM_JS = 0; // If 1, generate code in asm.js format
+var ASM_JS = 0; // If 1, generate code in asm.js format. XXX This is highly experimental,
+ // and will not work on most codebases yet. It is NOT recommended that you
+ // try this yet.
var USE_MATH_IMUL = 0; // If 1, use Math.imul when useful
var NECESSARY_BLOCKADDRS = []; // List of (function, block) for all block addresses that are taken.