Skip to content

Commit 95feb64

Browse files
committed
warn about ASM_JS
1 parent 3754206 commit 95feb64

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

emcc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,7 @@ try:
11441144
if DEBUG: save_intermediate('transformed')
11451145

11461146
if shared.Settings.ASM_JS: # XXX temporary wrapping for testing purposes
1147+
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.'
11471148
unwrapped = open(final).read()
11481149
final += '.asmwrap.js'
11491150
open(final, 'w').write('''

src/settings.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ var HEADLESS = 0; // If 1, will include shim code that tries to 'fake' a browser
301301
// very partial - it is hard to fake a whole browser! - so
302302
// keep your expectations low for this to work.
303303

304-
var ASM_JS = 0; // If 1, generate code in asm.js format
304+
var ASM_JS = 0; // If 1, generate code in asm.js format. XXX This is highly experimental,
305+
// and will not work on most codebases yet. It is NOT recommended that you
306+
// try this yet.
305307
var USE_MATH_IMUL = 0; // If 1, use Math.imul when useful
306308

307309
var NECESSARY_BLOCKADDRS = []; // List of (function, block) for all block addresses that are taken.

0 commit comments

Comments
 (0)