rust-lang / rust-lang/rustc_codegen_cranelift

Fix CG_CLIF_JIT_ARGS on Linux, macOS and Windows

Open
#1,048 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-jit C-bug O-linux O-macos O-windows
Dominant language
Rust
Stars
2.1k
Forks
157
Avg merge
1d 19h
Merged PRs (30d)
3

Description

On Linux since 5c6bf836fe3d4cfda1b827a5cd3982e5a588c0ff, the arguments passed to libstd by glibc when dlopening it are used, which are the arguments of the rustc process, not those in CG_CLIF_JIT_ARGS.

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 reproducing the issue on Linux, then compare the handling of CG_CLIF_JIT_ARGS across Linux, macOS, and Windows. Verify how arguments are passed when libstd is loaded through dlopen. Done means the configured CG_CLIF_JIT_ARGS values are used instead of the rustc process arguments on all three platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.