Skip to content

Commit

Permalink
dependencies/boost: Add new homebrew root
Browse files Browse the repository at this point in the history
On Apple Silicon the default serach path is /opt/homebrew instead of
/usr/local.
  • Loading branch information
dcbaker committed Apr 24, 2024
1 parent 742c079 commit de00a80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mesonbuild/dependencies/boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,9 @@ def detect_roots(self) -> None:
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():
Expand All @@ -688,6 +689,8 @@ def detect_roots(self) -> None:
tmp: T.List[Path] = []

# Add some default system paths
if m.is_darwin():
tmp.append(Path('/opt/homebrew/opt/boost'))
tmp += [Path('/opt/local')]
tmp += [Path('/usr/local/opt/boost')]
tmp += [Path('/usr/local')]
Expand Down

0 comments on commit de00a80

Please sign in to comment.