armclang: extend the prefix detection for Keil armclang

This will avoid false positives with the ARM Ltd. `armclang` compiler.
This commit is contained in:
Ben Boeckel 2021-12-16 17:08:26 -05:00
parent 28de74c994
commit 786d437982
1 changed files with 2 additions and 2 deletions

View File

@ -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')):