bazelbuild / bazelbuild/rules_cc

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

Open
#489 0 comments 1 reaction 1 assignee Claimed by @trybka View on GitHub
P2
Dominant language
Starlark
Stars
247
Forks
196
PR merge metrics
No merged PRs in 30d

Description

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](https://lwn.net/Articles/1007541/) in binutils 2.44 and starting in Rust 1.89, Rust compiler [emits warnings](https://github.com/rust-lang/rust/pull/141750) 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.