diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2019-06-27 15:36:33 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-06-28 22:12:55 +0300 |
commit | 3f280a81fde8a7771924159d6e1bda7ec364970c (patch) | |
tree | f985dc7cfd3023f303ec5ccc61e5d309f3082e69 | |
parent | 7423247413b646366ed6265322fb9952d2bee0ef (diff) | |
download | meson-3f280a81fde8a7771924159d6e1bda7ec364970c.zip meson-3f280a81fde8a7771924159d6e1bda7ec364970c.tar.gz meson-3f280a81fde8a7771924159d6e1bda7ec364970c.tar.bz2 |
Remove build host mixing warning on native
There are two problems with this:
- It has false positives when the code that trips it is conditional and
no run on cross.
- It confuses users who never wrote any `native` flags and don't care
about cross.
Fixes #5509
-rw-r--r-- | mesonbuild/backend/backends.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index b9bf166..982b0ee 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -812,11 +812,6 @@ class Backend: true. You might want to set `native: true` instead to build it for the build machine.'''.format(exe.name)) raise MesonException(s) - else: - mlog.warning(''' - Target {} is used as a generator, but is built for the host - machine. This means most cross builds will fail. You might want to - set `native: true` instead to build it for the build machine.'''.format(exe.name)) exe_arr = [os.path.join(self.environment.get_build_dir(), self.get_target_filename(exe))] else: exe_arr = exe.get_command() |