Skip to content

Commit 22abfd9

Browse files
committed
lighthouse: fix compiling for arm on macOS with 7.0.1
1 parent 72815c3 commit 22abfd9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Formula/l/lighthouse.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Lighthouse < Formula
22
desc "Rust Ethereum 2.0 Client"
33
homepage "https://lighthouse.sigmaprime.io/"
4-
url "https://github.com/sigp/lighthouse/archive/refs/tags/v6.0.1.tar.gz"
5-
sha256 "8a8f43f099bed624318aaabbf3811e78a0171c7fb4e5e30f7e66ab70bbe40a1c"
4+
url "https://github.com/sigp/lighthouse/archive/refs/tags/v7.0.1.tar.gz"
5+
sha256 "e2432feb02d6dd86faec3831731a88993c428a87df1fa6a43efd576bdf01f259"
66
license "Apache-2.0"
77

88
livecheck do
@@ -36,6 +36,8 @@ def install
3636
# Ensure that the `openssl` crate picks up the intended library.
3737
ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix
3838
ENV["OPENSSL_NO_VENDOR"] = "1"
39+
# Use correct compiler to prevent blst from enabling AVX support on macOS
40+
ENV["CC"] = Formula["llvm"].opt_bin/"clang" if Hardware::CPU.mac?
3941

4042
system "cargo", "install", "--no-default-features", *std_cargo_args(path: "./lighthouse")
4143
end

0 commit comments

Comments
 (0)