rules_cc
rules_cc copied to clipboard
gold is deprecated, but it is currently preferred over regular LD
This code prefers LLD over GOLD over normal LD: https://github.com/bazelbuild/rules_cc/blob/31ddd5fbee38bd9cbf2bfbc8b8a2a6cf87f9a32f/cc/private/toolchain/unix_cc_configure.bzl#L476-L493
GOLD is deprecated in binutils 2.44 and starting in Rust 1.89, Rust compiler emits warnings when it detects GOLD is being used to link binaries.
Perhaps the logic should be changed to stop using GOLD at all, or at least an option should be provided so user can opt into such behaviour.