Accept .S files as assembler too.

pull/125/head
Jussi Pakkanen 10 years ago
parent 1829d5aa7b
commit 0ba1d545af
  1. 4
      compilers.py

@ -1043,7 +1043,7 @@ class GnuCCompiler(CCompiler):
return get_gcc_soname_args(self.gcc_type, shlib_name, path, soversion)
def can_compile(self, filename):
return super().can_compile(filename) or filename.split('.')[-1] == 's' # Gcc can do asm, too.
return super().can_compile(filename) or filename.split('.')[-1].lower() == 's' # Gcc can do asm, too.
class GnuObjCCompiler(ObjCCompiler):
std_warn_args = ['-Wall', '-Wpedantic', '-Winvalid-pch']
@ -1120,7 +1120,7 @@ class ClangCCompiler(CCompiler):
return 'pch'
def can_compile(self, filename):
return super().can_compile(filename) or filename.split('.')[-1] == 's' # Clang can do asm, too.
return super().can_compile(filename) or filename.split('.')[-1].lower() == 's' # Clang can do asm, too.
def get_pch_use_args(self, pch_dir, header):
# Workaround for Clang bug http://llvm.org/bugs/show_bug.cgi?id=15136

Loading…
Cancel
Save