aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/environment.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/environment.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/environment.py')
-rw-r--r--mesonbuild/environment.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 71f75f9..f1145e5 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -1215,11 +1215,6 @@ class CrossBuildInfo:
def get_sys_root(self):
return self.get_properties().get('sys_root', None)
- # When compiling a cross compiler we use the native compiler for everything.
- # But not when cross compiling a cross compiler.
- def need_cross_compiler(self):
- return 'host_machine' in self.config
-
def need_exe_wrapper(self):
value = self.config['properties'].get('needs_exe_wrapper', None)
if value is not None: