diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-03-25 15:49:30 -0700 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-03-27 14:18:19 +0000 |
commit | 151961056cc2ebda27244746d4d441b2eb48cf8e (patch) | |
tree | 0275931f8d4855cab1ecc084af23e9a2d6787767 | |
parent | 30c5ec7c23a5245a332eab2a78bb2fcc2b1efbd9 (diff) | |
download | meson-151961056cc2ebda27244746d4d441b2eb48cf8e.zip meson-151961056cc2ebda27244746d4d441b2eb48cf8e.tar.gz meson-151961056cc2ebda27244746d4d441b2eb48cf8e.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 d2f863c..bbe025e 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -402,9 +402,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) |