diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-02 18:53:44 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-02 18:53:44 -0800 |
commit | 6d87b565930d921cbb48e2fda97a9e8b0afa3826 (patch) | |
tree | 33d1b0470fd6776321a949c3e244e2de65504b0b /emcc | |
parent | 8bd21f1fff1ddac70f617291dbe2501efa11be30 (diff) |
adjust TOTAL_MEMORY at runtime, to take into account last minute changes to Module.TOTAL_MEMORY
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -1228,16 +1228,6 @@ try: shared.Settings.CORRECT_OVERFLOWS = 1 assert not shared.Settings.PGO, 'cannot run PGO in ASM_JS mode' - heap = 4096 - while heap < shared.Settings.TOTAL_MEMORY: - 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 - if shared.Settings.CORRECT_SIGNS >= 2 or shared.Settings.CORRECT_OVERFLOWS >= 2 or shared.Settings.CORRECT_ROUNDINGS >= 2: debug_level = 4 # must keep debug info to do line-by-line operations |