rust-lang / rust-lang/rustc_codegen_cranelift

Use an LLVM built sysroot instead of a clif built sysroot for user releases

Open
#1,222 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-enhancement compile-time
Dominant language
Rust
Stars
2.1k
Forks
157
Avg merge
1d 19h
Merged PRs (30d)
3

Description

This seems to improve build times on the rustc benchmark suite by a considerable amount. Likely due to having to link less code. In addition cg_clif as distributed with rustc will use an LLVM built sysroot. Local testing should still happen using a cg_clif sysroot for better test coverage. CI should test both configurations.

Contributor guide

No contributing guide indexed for this repository

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 by reading linked issues #1395 and #1525, which track miscompilations when cg_clif is mixed with an LLVM-built sysroot. Review the existing CI coverage for both sysroot configurations, then identify the user-release switch and define validation that shows the mixed configuration is safe before changing it.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, ci-cd, compilers, release
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.