diff options
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -550,7 +550,7 @@ if has_vanilla_emcc and has_vanilla_llvm: base = c.replace('.cpp', '').replace('.c', '') expected = open(os.path.join('test', 'wasm_backend', base + '.txt')).read() for opts in [[], ['-O1'], ['-O2']]: - only = [] if opts != ['-O1'] or 'real' in base else ['-s', 'ONLY_MY_CODE=1'] # only my code is a hack we used early in wasm backend dev, which somehow worked, but only with -O1 + only = [] if opts != ['-O1'] or '_only' not in base else ['-s', 'ONLY_MY_CODE=1'] # only my code is a hack we used early in wasm backend dev, which somehow worked, but only with -O1 command = [VANILLA_EMCC, '-o', 'a.wasm.js', os.path.join('test', 'wasm_backend', c)] + opts + only print '....' + ' '.join(command) if os.path.exists('a.wasm.js'): os.unlink('a.wasm.js') |