diff options
-rwxr-xr-x | emcc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |