From 786d4379824a370b3a6ea415dc48aadb3b1f9dd2 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 16 Dec 2021 17:08:26 -0500 Subject: armclang: extend the prefix detection for Keil armclang This will avoid false positives with the ARM Ltd. `armclang` compiler. --- mesonbuild/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 6515f42..9fc31c6 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1777,8 +1777,8 @@ class Executable(BuildTarget): self.suffix = 'exe' elif machine.system.startswith('wasm') or machine.system == 'emscripten': self.suffix = 'js' - elif ('c' in self.compilers and self.compilers['c'].get_id().startswith('arm') or - 'cpp' in self.compilers and self.compilers['cpp'].get_id().startswith('arm')): + elif ('c' in self.compilers and self.compilers['c'].get_id().startswith('armclang') or + 'cpp' in self.compilers and self.compilers['cpp'].get_id().startswith('armclang')): self.suffix = 'axf' elif ('c' in self.compilers and self.compilers['c'].get_id().startswith('ccrx') or 'cpp' in self.compilers and self.compilers['cpp'].get_id().startswith('ccrx')): -- cgit v1.1