From 8236bed11b03c46508227dd4f9490482453c7959 Mon Sep 17 00:00:00 2001 From: makise-homura Date: Wed, 21 Feb 2018 16:53:15 +0300 Subject: [PATCH] Support lcc compiler for e2k (Elbrus) architecture --- mesonbuild/environment.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index e553423c2..ab3bfc90f 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -498,7 +498,7 @@ class Environment: continue version = search_version(out) full_version = out.split('\n', 1)[0] - if 'Free Software Foundation' in out: + if 'Free Software Foundation' or ('e2k' and 'lcc') in out: defines = self.get_gnu_compiler_defines(compiler) if not defines: popen_exceptions[' '.join(compiler)] = 'no pre-processor defines' @@ -611,7 +611,7 @@ class Environment: popen_exceptions[' '.join(compiler + arg)] = e continue version = search_version(out) - if 'Free Software Foundation' in out: + if 'Free Software Foundation' or ('e2k' and 'lcc') in out: defines = self.get_gnu_compiler_defines(compiler) if not defines: popen_exceptions[' '.join(compiler)] = 'no pre-processor defines' @@ -638,7 +638,7 @@ class Environment: popen_exceptions[' '.join(compiler + arg)] = e continue version = search_version(out) - if 'Free Software Foundation' in out: + if 'Free Software Foundation' or ('e2k' and 'lcc') in out: defines = self.get_gnu_compiler_defines(compiler) if not defines: popen_exceptions[' '.join(compiler)] = 'no pre-processor defines'