File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 12
12
//! .rustc-info.json
13
13
//!
14
14
//! # All final artifacts are linked into this directory from `deps`.
15
+ //! # Note that named profiles will soon be included as separate directories
16
+ //! # here. They have a restricted format, similar to Rust identifiers, so
17
+ //! # Cargo-specific directories added in the future should use some prefix
18
+ //! # like `.` to avoid name collisions.
15
19
//! debug/ # or release/
16
20
//!
17
21
//! # File used to lock the directory to prevent multiple cargo processes
46
50
//! # incremental is enabled.
47
51
//! incremental/
48
52
//!
53
+ //! # The sysroot for -Zbuild-std builds. This only appears in
54
+ //! # target-triple directories (not host), and only if -Zbuild-std is
55
+ //! # enabled.
56
+ //! .sysroot/
57
+ //!
49
58
//! # This is the location at which the output of all custom build
50
59
//! # commands are rooted.
51
60
//! build/
@@ -177,6 +186,7 @@ impl Layout {
177
186
// Compute the sysroot path for the build-std feature.
178
187
let build_std = ws. config ( ) . cli_unstable ( ) . build_std . as_ref ( ) ;
179
188
let ( sysroot, sysroot_libdir) = if let Some ( tp) = build_std. and ( triple_path) {
189
+ // This uses a leading dot to avoid collision with named profiles.
180
190
let sysroot = dest. join ( ".sysroot" ) ;
181
191
let sysroot_libdir = sysroot. join ( "lib" ) . join ( "rustlib" ) . join ( tp) . join ( "lib" ) ;
182
192
( Some ( sysroot) , Some ( sysroot_libdir) )
You can’t perform that action at this time.
0 commit comments