aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-06 11:38:26 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-06 11:38:26 -0700
commitb6b9c54b99596dbe4471ebe21a171ef869afaa8e (patch)
tree92ee3b1a7bd066f02415a62bf87748032cc5198f
parentfc41fce2f5e9ac88939bb55d3391fbedbaafbf6a (diff)
fix memory initializer detection
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 9d437ecd..cd6e34ae 100755
--- a/emcc
+++ b/emcc
@@ -1570,7 +1570,7 @@ try:
if os.path.abspath(memfile) != os.path.abspath(memfile):
shutil.copyfile(memfile, temp_memfile)
return 'loadMemoryInitializer("%s");' % os.path.basename(memfile)
- src = re.sub('/\* memory initializer \*/ allocate\(([\d,\.concat\(\)\[\]\\n ]+)"i8", ALLOC_NONE, TOTAL_STACK\)', repl, src, count=1)
+ src = re.sub('/\* memory initializer \*/ allocate\(([\d,\.concat\(\)\[\]\\n ]+)"i8", ALLOC_NONE, Runtime\.GLOBAL_BASE\)', repl, src, count=1)
open(final + '.mem.js', 'w').write(src)
final += '.mem.js'
if DEBUG: