From 3f280a81fde8a7771924159d6e1bda7ec364970c Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 27 Jun 2019 15:36:33 -0400 Subject: 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 --- mesonbuild/backend/backends.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'mesonbuild/backend/backends.py') 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() -- cgit v1.1