Skip to content

Bazel: do not force lld and fix platforms warning #20250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

redsun82
Copy link
Contributor

This was meant to avoid using gold, but lld might not be installed. Having gold installed results in the following warning:

warning: the gold linker is deprecated and has known bugs with Rust
  |
  = help: consider using LLD or ld from GNU binutils instead
  • if a user sees this warning, they can provide the lld or whatever linker they prefer themselves, or make sure to uninstall gold
  • in any case, this is not what we use for releasing (where we are sure we don't use gold).

This was meant to avoid using `gold`, but `lld` might not be installed.
Having `gold` installed results in the following warning:
```
warning: the gold linker is deprecated and has known bugs with Rust
  |
  = help: consider using LLD or ld from GNU binutils instead
```

* if a user sees this warning, they can provide the `lld` or whatever
  linker they prefer themselves, or make sure to uninstall `gold`
* in any case, this is not what we use for releasing (where we are sure
  we don't use `gold`).
@redsun82 redsun82 requested a review from a team as a code owner August 19, 2025 14:01
@Copilot Copilot AI review requested due to automatic review settings August 19, 2025 14:01
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the forced use of the lld linker in Bazel builds and updates the platforms dependency to resolve warnings. The changes address two issues: avoiding forced lld linker usage (which may not be installed) and eliminating a platforms version warning.

Key changes:

  • Removes hardcoded lld linker configuration from .bazelrc
  • Updates platforms dependency from version 0.0.11 to 1.0.0

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
MODULE.bazel Updates platforms dependency to version 1.0.0 to resolve deprecation warning
.bazelrc Removes forced lld linker configuration for Linux and macOS builds

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Copy link
Contributor

@geoffw0 geoffw0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants