[bazel] Only use lld on Linux

macOS C++ toolchains from Apple do not contain lld, so bazel builds in
this repo would fail. This change scopes this only to Linux
This commit is contained in:
Keith Smiley 2022-04-01 17:41:18 -07:00
parent 3f3705978e
commit 9b0ed32e82

View File

@ -1 +1,2 @@
build --@rules_rust//:extra_rustc_flags=-Clink-arg=-fuse-ld=lld
build --enable_platform_specific_config
build:linux --@rules_rust//:extra_rustc_flags=-Clink-arg=-fuse-ld=lld