SERVER-124888: Fix MacOS cross compilation failing with rust (#52175)
GitOrigin-RevId: 30006d8eaf51ac1c20d5755e061da0cf700b2813
This commit is contained in:
parent
01d329a86a
commit
19a5655a66
6
.bazelrc
6
.bazelrc
@ -694,7 +694,13 @@ try-import %workspace%/.bazelrc.fuzztest
|
||||
# Cross-compile for macOS arm64
|
||||
build:macos-cross-arm64 --platforms=//bazel/platforms:macos_arm64_cross
|
||||
build:macos-cross-arm64 --copt=-w
|
||||
# The rust-based allocator_library bundles the full Rust stdlib into its .a;
|
||||
# on Mach-O, ld64.lld then sees the same CGUs in both liballocator_library.a and
|
||||
# libstd.a and fails with duplicate-symbol errors. Fall back to the c-based
|
||||
# allocator shim for macOS cross links.
|
||||
build:macos-cross-arm64 --@rules_rust//rust/settings:experimental_use_allocator_libraries_with_mangled_symbols=false
|
||||
|
||||
# Cross-compile for macOS x86_64
|
||||
build:macos-cross-x86_64 --platforms=//bazel/platforms:macos_x86_64_cross
|
||||
build:macos-cross-x86_64 --copt=-w
|
||||
build:macos-cross-x86_64 --@rules_rust//rust/settings:experimental_use_allocator_libraries_with_mangled_symbols=false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user