Skip to content

Commit f65a638

Browse files
committed
bazel: only pour arm64 linux bottle on default prefix
1 parent 34d1f83 commit f65a638

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Formula/b/bazel.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,18 @@ class Bazel < Formula
2828
uses_from_macos "zip"
2929

3030
on_linux do
31-
# Workaround for "/usr/bin/ld.gold: internal error in try_fix_erratum_843419_optimized"
32-
# Issue ref: https://sourceware.org/bugzilla/show_bug.cgi?id=31182
3331
on_arm do
32+
# Workaround for "/usr/bin/ld.gold: internal error in try_fix_erratum_843419_optimized"
33+
# Issue ref: https://sourceware.org/bugzilla/show_bug.cgi?id=31182
3434
depends_on "lld" => :build
35-
end
3635

37-
on_intel do
3836
# We use a workaround to prevent modification of the `bazel-real` binary
3937
# but this means brew cannot rewrite paths for non-default prefix
4038
pour_bottle? only_if: :default_prefix
4139
end
40+
on_intel do
41+
pour_bottle? only_if: :default_prefix
42+
end
4243
end
4344

4445
conflicts_with "bazelisk", because: "Bazelisk replaces the bazel binary"

0 commit comments

Comments
 (0)