Skip to content

Commit 75e2410

Browse files
authored
Merge pull request #245172 from Homebrew/bazel-pour-bottle
bazel bazel@7: only pour arm64 linux bottle on default prefix
2 parents 12a5428 + 5c81879 commit 75e2410

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
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"

Formula/b/[email protected]

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ class BazelAT7 < Formula
3232
uses_from_macos "zip"
3333

3434
on_linux do
35+
# We use a workaround to prevent modification of the `bazel-real` binary
36+
# but this means brew cannot rewrite paths for non-default prefix
37+
on_arm do
38+
pour_bottle? only_if: :default_prefix
39+
end
3540
on_intel do
36-
# We use a workaround to prevent modification of the `bazel-real` binary
37-
# but this means brew cannot rewrite paths for non-default prefix
3841
pour_bottle? only_if: :default_prefix
3942
end
4043
end

0 commit comments

Comments
 (0)