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.
pull/5271/head
Dylan Baker 6 years ago committed by Nirbheek Chauhan
parent 24c620594c
commit 6c698f5355
  1. 5
      mesonbuild/dependencies/base.py

@ -405,9 +405,10 @@ class ConfigToolDependency(ExternalDependency):
tools = [tool] tools = [tool]
else: else:
if self.env.is_cross_build() and not self.native: if self.env.is_cross_build() and not self.native:
mlog.warning('No entry for {0} specified in your cross file. ' mlog.deprecation('No entry for {0} specified in your cross file. '
'Falling back to searching PATH. This may find a ' 'Falling back to searching PATH. This may find a '
'native version of {0}!'.format(self.tool_name)) '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] tools = [[t] for t in self.tools]
best_match = (None, None) best_match = (None, None)

Loading…
Cancel
Save