rules_cc icon indicating copy to clipboard operation
rules_cc copied to clipboard

gold is deprecated, but it is currently preferred over regular LD

Open nbdd0121 opened this issue 4 months ago • 0 comments

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.

nbdd0121 avatar Sep 10 '25 13:09 nbdd0121