Skip to content

Commit 063d0ad

Browse files
committed
target spec: remove /etc/rustc as default path
The RFC specifies that if RUST_TARGET_PATH is unset then the default is /etc/rustc but this won't work on all systems (e.g. Windows) and the Rust compiler never actually implemented this behavior so remove it from the RFC. closes rust-lang/rust#31117 Signed-off-by: Doug Goldstein <[email protected]>
1 parent a2968d4 commit 063d0ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

text/0131-target-specification.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ deciding how to build for a given target. The process would look like:
6565
1. Look up the target triple in an internal map, and load that configuration
6666
if it exists. If that fails, check if the target name exists as a file, and
6767
try loading that. If the file does not exist, look up `<target>.json` in
68-
the `RUST_TARGET_PATH`, which is a colon-separated list of directories
69-
defaulting to `/etc/rustc`.
68+
the `RUST_TARGET_PATH`, which is a colon-separated list of directories.
7069
2. If `-C linker` is specified, use that instead of the target-specified
7170
linker.
7271
3. If `-C link-args` is given, add those to the ones specified by the target.

0 commit comments

Comments
 (0)