aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-09-30 22:22:42 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-09-30 22:22:42 +0300
commit1e12b87b931068a67110029b7e5240f4dba7e73c (patch)
tree35a6bda7826080a16eddf825e4ff7d525e2f7d38
parente69f69116120c45ad29803167fa25a1f4caac1c0 (diff)
downloadmeson-1e12b87b931068a67110029b7e5240f4dba7e73c.zip
meson-1e12b87b931068a67110029b7e5240f4dba7e73c.tar.gz
meson-1e12b87b931068a67110029b7e5240f4dba7e73c.tar.bz2
Gcc and clang can take assebmly files directly.
-rw-r--r--environment.py6
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