Skip to content

Commit d9cbd7e

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 <[email protected]>
1 parent f7c8928 commit d9cbd7e

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

src/bootstrap/src/lib.rs

+1-20
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ use crate::core::builder;
3737
use crate::core::builder::{Builder, Kind};
3838
use crate::core::config::{DryRun, LldMode, LlvmLibunwind, Target, TargetSelection, flags};
3939
use crate::utils::exec::{BehaviorOnFailure, BootstrapCommand, CommandOutput, OutputMode, command};
40-
use crate::utils::helpers::{
41-
self, dir_is_empty, exe, libdir, mtime, output, set_file_times, symlink_dir,
42-
};
40+
use crate::utils::helpers::{self, dir_is_empty, exe, libdir, mtime, output, set_file_times};
4341

4442
mod core;
4543
mod utils;
@@ -470,23 +468,6 @@ impl Build {
470468
crate::core::metadata::build(&mut build);
471469
}
472470

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-
490471
build
491472
}
492473

0 commit comments

Comments
 (0)