dependencies/boost: Add new homebrew root

On Apple Silicon the default search path is /opt/homebrew instead of
/usr/local.
pull/13147/head
Dylan Baker 11 months ago committed by Eli Schwartz
parent ff95c7d083
commit 80b9b125f4
  1. 9
      mesonbuild/dependencies/boost.py

@ -665,8 +665,9 @@ class BoostDependency(SystemDependency):
inc_paths = [x.resolve() for x in inc_paths]
roots += inc_paths
m = self.env.machines[self.for_machine]
# Add system paths
if self.env.machines[self.for_machine].is_windows():
if m.is_windows():
# Where boost built from source actually installs it
c_root = Path('C:/Boost')
if c_root.is_dir():
@ -688,8 +689,12 @@ class BoostDependency(SystemDependency):
tmp: T.List[Path] = []
# Add some default system paths
if m.is_darwin():
tmp.extend([
Path('/opt/homebrew/'), # for Apple Silicon MacOS
Path('/usr/local/opt/boost'), # for Intel Silicon MacOS
])
tmp += [Path('/opt/local')]
tmp += [Path('/usr/local/opt/boost')]
tmp += [Path('/usr/local')]
tmp += [Path('/usr')]

Loading…
Cancel
Save