Support lcc compiler for e2k (Elbrus) architecture

pull/3115/head
makise-homura 7 years ago
parent 74ae719033
commit 8236bed11b
  1. 6
      mesonbuild/environment.py

@ -498,7 +498,7 @@ class Environment:
continue continue
version = search_version(out) version = search_version(out)
full_version = out.split('\n', 1)[0] 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) defines = self.get_gnu_compiler_defines(compiler)
if not defines: if not defines:
popen_exceptions[' '.join(compiler)] = 'no pre-processor defines' popen_exceptions[' '.join(compiler)] = 'no pre-processor defines'
@ -611,7 +611,7 @@ class Environment:
popen_exceptions[' '.join(compiler + arg)] = e popen_exceptions[' '.join(compiler + arg)] = e
continue continue
version = search_version(out) 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) defines = self.get_gnu_compiler_defines(compiler)
if not defines: if not defines:
popen_exceptions[' '.join(compiler)] = 'no pre-processor defines' popen_exceptions[' '.join(compiler)] = 'no pre-processor defines'
@ -638,7 +638,7 @@ class Environment:
popen_exceptions[' '.join(compiler + arg)] = e popen_exceptions[' '.join(compiler + arg)] = e
continue continue
version = search_version(out) 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) defines = self.get_gnu_compiler_defines(compiler)
if not defines: if not defines:
popen_exceptions[' '.join(compiler)] = 'no pre-processor defines' popen_exceptions[' '.join(compiler)] = 'no pre-processor defines'

Loading…
Cancel
Save