rust-lang / rust-lang/rust

CMAKE_LINKER not set from target.*.linker when building LLVM

Open
#149,576 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug T-bootstrap
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

bootstrap sets e.g. CMAKE_C_COMPILER from target..cc, and other similar cmake variables, with the notable exception of not setting CMAKE_LINKER from target..linker.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in bootstrap by comparing how target..cc populates CMake variables with the missing target..linker handling. Trace the LLVM build configuration and verify that CMAKE_LINKER is set from target.*.linker; the LLVM build should then use the configured linker.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, rust
Domain
build-system, compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.