aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorJanus <ysangkok@gmail.com>2012-09-20 14:32:26 +0200
committerJanus <ysangkok@gmail.com>2012-09-20 14:32:26 +0200
commitb3039131e6df864d05f3492d02169e0434c142d3 (patch)
tree01ba6459945e4cac73b004b480609ed94a254807 /emcc
parent4b9f7c1c55f8a3454614cc9c8be1aba7c1337cdf (diff)
add conftest.c flag passing test and use right indenting
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc22
1 files changed, 11 insertions, 11 deletions
diff --git a/emcc b/emcc
index 5bfc4446..b1c4a8a9 100755
--- a/emcc
+++ b/emcc
@@ -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