summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/visualstudio.py
diff options
context:
space:
mode:
authorD Scott Phillips <scott@scott.ph>2021-03-24 03:43:51 -0700
committerGitHub <noreply@github.com>2021-03-24 12:43:51 +0200
commit703fd6d1fa32e2b5e706a7b6d726de7a3791fdec (patch)
treedf0ca30fe2706351c9af50c2cf47405235a72b45 /mesonbuild/compilers/mixins/visualstudio.py
parenta9e9b7c7501a3c8a5984a93879d1f309bf8c72aa (diff)
downloadmeson-703fd6d1fa32e2b5e706a7b6d726de7a3791fdec.tar.gz
compilers: clang-cl: Also accept .s files (#8520)
* compilers: clang-cl: Also accept .s files clang-cl has support for gas-compatible assembly files. * Add clang-cl to '128 generated assembly' test
Diffstat (limited to 'mesonbuild/compilers/mixins/visualstudio.py')
-rw-r--r--mesonbuild/compilers/mixins/visualstudio.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py
index 2b173eb96..763d030c0 100644
--- a/mesonbuild/compilers/mixins/visualstudio.py
+++ b/mesonbuild/compilers/mixins/visualstudio.py
@@ -412,6 +412,9 @@ class ClangClCompiler(VisualStudioLikeCompiler):
super().__init__(target)
self.id = 'clang-cl'
+ # Assembly
+ self.can_compile_suffixes.add('s')
+
def has_arguments(self, args: T.List[str], env: 'Environment', code: str, mode: str) -> T.Tuple[bool, bool]:
if mode != 'link':
args = args + ['-Werror=unknown-argument']