diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-09-30 22:22:42 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-09-30 22:22:42 +0300 |
commit | 1e12b87b931068a67110029b7e5240f4dba7e73c (patch) | |
tree | 35a6bda7826080a16eddf825e4ff7d525e2f7d38 | |
parent | e69f69116120c45ad29803167fa25a1f4caac1c0 (diff) | |
download | meson-1e12b87b931068a67110029b7e5240f4dba7e73c.zip meson-1e12b87b931068a67110029b7e5240f4dba7e73c.tar.gz meson-1e12b87b931068a67110029b7e5240f4dba7e73c.tar.bz2 |
Gcc and clang can take assebmly files directly.
-rw-r--r-- | environment.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/environment.py b/environment.py index cb77342..5635fc9 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 |