Skip to content

Commit 85f1a4d

Browse files
committed
remove "build/host" symlink
This seems like an overkill. We can still document things consistently without needing to create a symlink for it. Something like "build/$host-target-triple/stage2" should be clear enough. Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent f7c8928 commit 85f1a4d

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/bootstrap/src/lib.rs

-17
Original file line numberDiff line numberDiff line change
@@ -470,23 +470,6 @@ impl Build {
470470
crate::core::metadata::build(&mut build);
471471
}
472472

473-
// Make a symbolic link so we can use a consistent directory in the documentation.
474-
let build_triple = build.out.join(build.build);
475-
t!(fs::create_dir_all(&build_triple));
476-
let host = build.out.join("host");
477-
if host.is_symlink() {
478-
// Left over from a previous build; overwrite it.
479-
// This matters if `build.build` has changed between invocations.
480-
#[cfg(windows)]
481-
t!(fs::remove_dir(&host));
482-
#[cfg(not(windows))]
483-
t!(fs::remove_file(&host));
484-
}
485-
t!(
486-
symlink_dir(&build.config, &build_triple, &host),
487-
format!("symlink_dir({} => {}) failed", host.display(), build_triple.display())
488-
);
489-
490473
build
491474
}
492475

0 commit comments

Comments
 (0)