diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-19 20:53:36 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-19 20:53:36 -0800 |
commit | a532ce2fc8d8ba798c94d7dc6425172e3f4574e8 (patch) | |
tree | d0848ff27ad33c0f53fa0721d0045f37efcf8e4e /emcc | |
parent | 1223a5423d608d5dcf0e2f5b0445b4a7280bc450 (diff) |
remove emcc asm test wrapping
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -1186,15 +1186,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.' # XXX TODO: 0.0 instead of +0 for local var defs - unwrapped = open(final).read() - final += '.asmwrap.js' - open(final, 'w').write(''' -(function() { // prevent new Function from seeing the global scope -%s -}).apply(null, arguments); -''' % unwrapped) - if DEBUG: save_intermediate('asmwrap') + 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.' # It is useful to run several js optimizer passes together, to save on unneeded unparsing/reparsing js_optimizer_queue = [] |