aboutsummaryrefslogtreecommitdiff
path: root/compilers.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-05-20 22:32:55 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-05-20 22:32:55 +0300
commit0ba1d545afe021e09090f434d5242ae942e7d5b4 (patch)
tree4de18956f17a48f9894cb7f13533df959f36a823 /compilers.py
parent1829d5aa7b9c4a609941bdffa7d5e0339062453f (diff)
downloadmeson-0ba1d545afe021e09090f434d5242ae942e7d5b4.zip
meson-0ba1d545afe021e09090f434d5242ae942e7d5b4.tar.gz
meson-0ba1d545afe021e09090f434d5242ae942e7d5b4.tar.bz2
Accept .S files as assembler too.
Diffstat (limited to 'compilers.py')
-rw-r--r--compilers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilers.py b/compilers.py
index 6fe7370..5e66b23 100644
--- a/compilers.py
+++ b/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