From 3c461bcf4fe561dd77ba80420c78936b92f07c1b Mon Sep 17 00:00:00 2001 From: sompen Date: Tue, 11 Jun 2019 22:15:03 +0530 Subject: compilers: armclang supports only cross-compilation Revert the change done to Armclang compiler class in PR-4010 --- mesonbuild/compilers/compilers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 0a228b4..8ff8f9d 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -2184,7 +2184,7 @@ class ClangCompiler(GnuLikeCompiler): class ArmclangCompiler: def __init__(self, compiler_type): - if self.is_cross: + if not self.is_cross: raise EnvironmentException('armclang supports only cross-compilation.') # Check whether 'armlink.exe' is available in path self.linker_exe = 'armlink.exe' -- cgit v1.1