aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2018-12-03 00:00:08 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2019-01-02 16:11:02 -0500
commitdbf080afe99a8bbb04a3bfb19a81363d3b78e7b4 (patch)
treef28d46170f3b1c80ed6445f8bdb0a90c32165b5c /mesonbuild/interpreter.py
parent3a6e2aeed9737f1082571e868ba50e72957f27c7 (diff)
downloadmeson-dbf080afe99a8bbb04a3bfb19a81363d3b78e7b4.zip
meson-dbf080afe99a8bbb04a3bfb19a81363d3b78e7b4.tar.gz
meson-dbf080afe99a8bbb04a3bfb19a81363d3b78e7b4.tar.bz2
Get rid of `need_cross_compiler`
Building a cross compiler (`build == host != target`) is not cross compiling. As such, it doesn't make sense to handle it under `is_cross_build`. (N.B. Building a standard library for a cross compiler would require cross compiling, but Meson has support to do such a thing as part of a compiler build currently.)
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 61481a4..50f6a42 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -2685,7 +2685,7 @@ external dependencies (including libraries) must go to "dependencies".''')
def add_languages(self, args, required):
success = True
- need_cross_compiler = self.environment.is_cross_build() and self.environment.cross_info.need_cross_compiler()
+ need_cross_compiler = self.environment.is_cross_build()
for lang in sorted(args, key=compilers.sort_clink):
lang = lang.lower()
if lang in self.coredata.compilers: