diff options
author | John Ericson <git@JohnEricson.me> | 2018-12-03 00:00:08 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2019-01-02 16:11:02 -0500 |
commit | dbf080afe99a8bbb04a3bfb19a81363d3b78e7b4 (patch) | |
tree | f28d46170f3b1c80ed6445f8bdb0a90c32165b5c /mesonbuild/backend/backends.py | |
parent | 3a6e2aeed9737f1082571e868ba50e72957f27c7 (diff) | |
download | meson-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/backend/backends.py')
-rw-r--r-- | mesonbuild/backend/backends.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index e8adc99..187f302 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -343,7 +343,6 @@ class Backend: exe_is_native = True is_cross_built = (not exe_is_native) and \ self.environment.is_cross_build() and \ - self.environment.cross_info.need_cross_compiler() and \ self.environment.cross_info.need_exe_wrapper() if is_cross_built: exe_wrapper = self.environment.get_exe_wrapper() @@ -693,7 +692,6 @@ class Backend: else: cmd = [os.path.join(self.environment.get_build_dir(), self.get_target_filename(t.get_exe()))] is_cross = self.environment.is_cross_build() and \ - self.environment.cross_info.need_cross_compiler() and \ self.environment.cross_info.need_exe_wrapper() if isinstance(exe, build.BuildTarget): is_cross = is_cross and exe.is_cross |