diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-03-25 15:49:30 -0700 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-04-16 23:54:54 +0530 |
commit | 6c698f53552be0931b21ca1b5bb8f1bca43be181 (patch) | |
tree | 2677e4f1bd9d27605fca7044452ea6bb14b284f0 | |
parent | 24c620594c834253ce2a9fcc7fab70527c1fa539 (diff) | |
download | meson-6c698f53552be0931b21ca1b5bb8f1bca43be181.zip meson-6c698f53552be0931b21ca1b5bb8f1bca43be181.tar.gz meson-6c698f53552be0931b21ca1b5bb8f1bca43be181.tar.bz2 |
dependencies/configtool: Deprecate falling back to path
It was a mistake in retrospect to not make this deprecated in the
first place, so let's do that. When cross files were new we needed
this as a way to specify a llvm-config binary, since it could be
passed via PATH overrides.
-rw-r--r-- | mesonbuild/dependencies/base.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index a608357..06afe38 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -405,9 +405,10 @@ class ConfigToolDependency(ExternalDependency): tools = [tool] else: if self.env.is_cross_build() and not self.native: - mlog.warning('No entry for {0} specified in your cross file. ' - 'Falling back to searching PATH. This may find a ' - 'native version of {0}!'.format(self.tool_name)) + mlog.deprecation('No entry for {0} specified in your cross file. ' + 'Falling back to searching PATH. This may find a ' + 'native version of {0}! This will become a hard ' + 'error in a future version of meson'.format(self.tool_name)) tools = [[t] for t in self.tools] best_match = (None, None) |