diff options
author | Martin Storsjö <martin@martin.st> | 2022-03-21 14:54:43 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2022-09-15 11:25:37 +0300 |
commit | cc9651f5163362a54a22400d8fe8d97df1e21d4b (patch) | |
tree | 0549232bc842ff34da9ebab809666d2c8556efc4 | |
parent | d4a2b75da69da1891682fa40ec9e1ca99d3cf950 (diff) |
Don't use gas-preprocessor with clang-cl for arm targets
Since meson 0.58.0 (released in May 2021), meson accepts adding '.S'
assembly files as source files to the clang-cl compiler.
If using an older version of meson, keep using gas-preprocessor
just like for MSVC builds.
-rw-r--r-- | meson.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 3369d03..a9bce50 100644 --- a/meson.build +++ b/meson.build @@ -476,7 +476,8 @@ use_gaspp = false if (is_asm_enabled and (host_machine.cpu_family() == 'aarch64' or host_machine.cpu_family().startswith('arm')) and - cc.get_argument_syntax() == 'msvc') + cc.get_argument_syntax() == 'msvc' and + (cc.get_id() != 'clang-cl' or meson.version().version_compare('<0.58.0'))) gaspp = find_program('gas-preprocessor.pl') use_gaspp = true gaspp_gen = generator(gaspp, |