Skip to content

Commit 64cf826

Browse files
authored
fix musl build with bazel 9 (#11330)
1 parent 1c2ff7d commit 64cf826

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shared.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,11 @@ common:mac-workflows --config=workflows
375375
common:mac-workflows --build_metadata=TAGS=mac-workflow
376376

377377
# Build fully static binaries linked against musl on Linux.
378+
# TODO(tyler-french): Remove once toolchains_musl is updated to load cc symbols explicitly.
379+
# See https://github.com/bazel-contrib/musl-toolchain/pull/65
380+
common:static --incompatible_autoload_externally=+cc_common,+CcToolchainConfigInfo,+cc_toolchain
378381
common:static --platforms=//platforms:linux_x86_64_musl
379382
common:static --extra_toolchains=@musl_toolchains_hub//:all
383+
common:static-arm64 --incompatible_autoload_externally=+cc_common,+CcToolchainConfigInfo,+cc_toolchain
380384
common:static-arm64 --platforms=//platforms:linux_arm64_musl
381385
common:static-arm64 --extra_toolchains=@musl_toolchains_hub//:all

0 commit comments

Comments
 (0)