rust-lang / rust-lang/rustc_codegen_gcc
.cargo/config.toml not working properly
Open
Nobody has claimed this yet.
bug
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 105
- Avg merge
- 8h 20m
- Merged PRs (30d)
- 14
Description
I had a .cargo/config.toml with the following content:
[target.x86_64-unknown-linux-gnu]
rustflags = ["-L", "native=."]
and the flags were sent correctly when using cg_llvm, but they were not sent properly with the y.sh script.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the repository's y.sh script and the .cargo/config.toml target configuration, then compare how cg_llvm and y.sh invoke the build. Reproduce the x86_64-unknown-linux-gnu case and trace where the rustflags stop being forwarded; done means the configured native library path is passed correctly through y.sh.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100