diff --git a/Formula/boost-build.rb b/Formula/boost-build.rb index b697dd5952c39..fec3af065c9ba 100644 --- a/Formula/boost-build.rb +++ b/Formula/boost-build.rb @@ -22,6 +22,13 @@ class BoostBuild < Formula conflicts_with "b2-tools", because: "both install `b2` binaries" + # Fix build system issues on Apple silicon. This change has aleady + # been merged upstream, remove this patch once it lands in a release. + patch do + url "https://github.com/boostorg/build/commit/456be0b7ecca065fbccf380c2f51e0985e608ba0.patch?full_index=1" + sha256 "e7a78145452fc145ea5d6e5f61e72df7dcab3a6eebb2cade6b4cfae815687f3a" + end + def install system "./bootstrap.sh" system "./b2", "--prefix=#{prefix}", "install"