aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc5
1 files changed, 2 insertions, 3 deletions
diff --git a/emcc b/emcc
index f3461c7b..3bd8b3d9 100755
--- a/emcc
+++ b/emcc
@@ -629,9 +629,8 @@ header = False # pre-compiled headers. We fake that by just copying the file
for i in range(1, len(sys.argv)):
arg = sys.argv[i]
if not arg.startswith('-'):
- for extension in ['.c','.m']:
- if arg.endswith(extension):
- use_cxx = False
+ if arg.endswith(('.c','.m')):
+ use_cxx = False
if arg.endswith('.h') and sys.argv[i-1] != '-include':
header = True