diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-21 18:32:43 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-21 18:32:43 -0800 |
commit | 941c8e583d603ff4e6b124dc1fe17d03dface233 (patch) | |
tree | 7c99d80fa861b4ab034cba4502d825b3e9add4da /emcc | |
parent | a23490650c16c4e6b7639920aeeee2ce302a2b61 (diff) | |
parent | 21f7959f64db7f3309e7f9d0d106abb1ea82f403 (diff) |
Merge pull request #859 from waywardmonkeys/cmdline-fixes
Cmdline fixes
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -646,7 +646,8 @@ try: for i in range(len(newargs)): newargs[i] = newargs[i].strip() # On Windows Vista (and possibly others), excessive spaces in the command line leak into the items in this array, so trim e.g. 'foo.cpp ' -> 'foo.cpp' if newargs[i].startswith('-O'): - requested_level = newargs[i][2] + # Let -O default to -O2, which is what gcc does. + requested_level = newargs[i][2:] or '2' if requested_level == 's': print >> sys.stderr, 'emcc: warning: -Os is ignored (use -O0, -O1, -O2)' else: |