diff options
author | D Scott Phillips <scott@scott.ph> | 2021-03-24 03:43:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 12:43:51 +0200 |
commit | 703fd6d1fa32e2b5e706a7b6d726de7a3791fdec (patch) | |
tree | df0ca30fe2706351c9af50c2cf47405235a72b45 /mesonbuild/compilers | |
parent | a9e9b7c7501a3c8a5984a93879d1f309bf8c72aa (diff) | |
download | meson-703fd6d1fa32e2b5e706a7b6d726de7a3791fdec.zip meson-703fd6d1fa32e2b5e706a7b6d726de7a3791fdec.tar.gz meson-703fd6d1fa32e2b5e706a7b6d726de7a3791fdec.tar.bz2 |
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')
-rw-r--r-- | mesonbuild/compilers/mixins/visualstudio.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py index 2b173eb..763d030 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'] |