Skip to content
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

rustc book does not document RUST_TARGET_PATH #128280

Closed
lolbinarycat opened this issue Jul 27, 2024 · 1 comment · Fixed by #128285
Closed

rustc book does not document RUST_TARGET_PATH #128280

lolbinarycat opened this issue Jul 27, 2024 · 1 comment · Fixed by #128285
Assignees
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools A-targets Area: Concerning the implications of different compiler targets C-enhancement Category: An issue proposing an enhancement or a PR with one. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@lolbinarycat
Copy link
Contributor

lolbinarycat commented Jul 27, 2024

Location

https://doc.rust-lang.org/rustc/targets/custom.html

Summary

this environment variable controls how to look up custom targets, but it is completely undocumented. i had to read src/librustc_back/target/mod.rs in order to figure out how it works.

@lolbinarycat lolbinarycat added the A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools label Jul 27, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jul 27, 2024
@lolbinarycat
Copy link
Contributor Author

@rustbot claim

lolbinarycat added a commit to lolbinarycat/rust that referenced this issue Jul 27, 2024
based on the module comment in
rust/compiler/rustc_target/src/spec/mod.rs

Fixes rust-lang#128280
@jieyouxu jieyouxu added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. A-targets Area: Concerning the implications of different compiler targets A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools C-enhancement Category: An issue proposing an enhancement or a PR with one. and removed A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Jul 28, 2024
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Jul 28, 2024
… r=jieyouxu

rustc book: document how the RUST_TARGET_PATH variable is used

based on the module comment in
rust/compiler/rustc_target/src/spec/mod.rs

Fixes rust-lang#128280
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Jul 28, 2024
… r=jieyouxu

rustc book: document how the RUST_TARGET_PATH variable is used

based on the module comment in
rust/compiler/rustc_target/src/spec/mod.rs

Fixes rust-lang#128280
@bors bors closed this as completed in 5eea6d7 Jul 28, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this issue Jul 28, 2024
Rollup merge of rust-lang#128285 - lolbinarycat:rustc-custom-targets, r=jieyouxu

rustc book: document how the RUST_TARGET_PATH variable is used

based on the module comment in
rust/compiler/rustc_target/src/spec/mod.rs

Fixes rust-lang#128280
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools A-targets Area: Concerning the implications of different compiler targets C-enhancement Category: An issue proposing an enhancement or a PR with one. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants