aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-16 17:20:47 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-17 10:01:04 -0800
commite138af189b10854ba16cbc99843a171c59c6d331 (patch)
tree6c50ac845e1ea403175f2036e54c9007b9129513 /emcc
parent3c4f29d187ce68f6e0b21a59eb8399a7c6e6eb16 (diff)
remove current memory initialization chunking via .concat(..)
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc4
1 files changed, 1 insertions, 3 deletions
diff --git a/emcc b/emcc
index c295a76e..4ad0706a 100755
--- a/emcc
+++ b/emcc
@@ -1913,9 +1913,7 @@ try:
shared.try_delete(memfile)
def repl(m):
# handle chunking of the memory initializer
- s = re.sub('[\[\]\n\(\)\. ]', '', m.groups(0)[0])
- s = s.replace('concat', ',')
- if s[-1] == ',': s = s[:-1]
+ s = m.groups(0)[0][1:-1]
open(memfile, 'wb').write(''.join(map(lambda x: chr(int(x or '0')), s.split(','))))
if DEBUG:
# Copy into temp dir as well, so can be run there too