aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc9
1 files changed, 4 insertions, 5 deletions
diff --git a/emcc b/emcc
index 029d60a1..9a58094b 100755
--- a/emcc
+++ b/emcc
@@ -1143,11 +1143,10 @@ try:
heap = 4096
while heap < shared.Settings.TOTAL_MEMORY:
- heap *= 2
- #if heap <= 16*1024*1024:
- # heap *= 2
- #else:
- # heap += 16*1024*1024
+ if heap < 16*1024*1024:
+ heap *= 2
+ else:
+ heap += 16*1024*1024
if heap != shared.Settings.TOTAL_MEMORY:
logging.warning('increasing TOTAL_MEMORY to %d to be more reasonable for asm.js' % heap)
shared.Settings.TOTAL_MEMORY = heap