diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-13 14:08:44 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-13 14:08:44 -0800 |
commit | 0dcba8bc4ec746505cf05c37a253273fb0bcfe06 (patch) | |
tree | ee83763277612fcc2a53f3e3a7ceb466af4bf7bb /emcc | |
parent | 9071942043abc0000a3fa1a68f34887657275a2c (diff) |
finish llvm opts in emcc, plus more tests
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -264,6 +264,11 @@ elif use_compiler: if opt_level >= 1: llvm_opt_level = 1 newargs[i] = '' + elif newargs[i].startswith('--llvm-opts'): + assert '=' not in newargs[i], 'Invalid llvm opts parameter (do not use "=")' + llvm_opt_level = eval(newargs[i+1]) + newargs[i] = '' + newargs[i+1] = '' newargs = [ arg for arg in newargs if arg is not '' ] settings_changes = [] |