diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-14 20:15:18 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-14 20:15:18 -0800 |
commit | 12c70c923665db82ac1d081c346b8f2da21314f5 (patch) | |
tree | 53d9c50839e1c4c28d95206418e6935464000eb5 | |
parent | 53254fd4922d3cb48d96bbd885951aa99a61d75a (diff) |
fix for source suffixes in emcc
-rwxr-xr-x | emcc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -310,7 +310,7 @@ try: newargs = newargs + ['-emit-llvm', '-c'] for input_file in input_files: - if input_file.endswith(('.c', '.cpp', '.cxx')): + if input_file.endswith(SOURCE_SUFFIXES): args = newargs + [input_file, '-o', in_temp(unsuffixed_basename(input_file) + '.o')] if DEBUG: print >> sys.stderr, "emcc running:", call, ' '.join(args) Popen([call] + args).communicate() |