From 1e12b87b931068a67110029b7e5240f4dba7e73c Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 30 Sep 2014 22:22:42 +0300 Subject: [PATCH] Gcc and clang can take assebmly files directly. --- environment.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/environment.py b/environment.py index cb7734247..5635fc9c9 100644 --- a/environment.py +++ b/environment.py @@ -1019,6 +1019,9 @@ class GnuCCompiler(CCompiler): def get_soname_args(self, shlib_name, path, soversion): 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. + class GnuObjCCompiler(ObjCCompiler): std_warn_args = ['-Wall', '-Winvalid-pch'] @@ -1093,6 +1096,9 @@ class ClangCCompiler(CCompiler): def get_pch_suffix(self): return 'pch' + def can_compile(self, filename): + return super().can_compile(filename) or filename.split('.')[-1] == 's' # Clang can do asm, too. + class GnuCPPCompiler(CPPCompiler): std_warn_args = ['-Wall', '-Winvalid-pch'] # may need to separate the latter to extra_debug_args or something