diff options
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -322,12 +322,12 @@ elif len(sys.argv) == 2 and sys.argv[1] == '-v': # -v with no inputs exit(subprocess.call([shared.CLANG, '-v'])) def is_minus_s_for_emcc(newargs,i): - assert newargs[i] == '-s' - if i+1 < len(newargs) and '=' in newargs[i+1]: # -s OPT=VALUE is for us, -s by itself is a linker option - return True - else: - print >> sys.stderr, 'emcc: warning: treating -s as linker option and not as -s OPT=VALUE for js compilation' - return False + assert newargs[i] == '-s' + if i+1 < len(newargs) and '=' in newargs[i+1]: # -s OPT=VALUE is for us, -s by itself is a linker option + return True + else: + print >> sys.stderr, 'emcc: warning: treating -s as linker option and not as -s OPT=VALUE for js compilation' + return False # If this is a configure-type thing, do not compile to JavaScript, instead use clang # to compile to a native binary (using our headers, so things make sense later) @@ -339,14 +339,14 @@ if CONFIGURE_CONFIG or CMAKE_CONFIG: compiler = shared.to_cc(compiler) def filter_emscripten_options(argv): idx = 0 - skipNext = False + skip_next = False for el in argv: - if skipNext: - skipNext = False + if skip_next: + skip_next = False idx += 1 continue - if el=='-s' and is_minus_s_for_emcc(argv,idx): - skipNext = True + if el == '-s' and is_minus_s_for_emcc(argv, idx): + skip_next = True else: yield el idx += 1 |