Skip to content

Commit

Permalink
remove "build/host" symlink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
onur-ozkan committed Oct 5, 2024
1 parent f7c8928 commit 85f1a4d
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/bootstrap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -470,23 +470,6 @@ impl Build {
crate::core::metadata::build(&mut build);
}

// Make a symbolic link so we can use a consistent directory in the documentation.
let build_triple = build.out.join(build.build);
t!(fs::create_dir_all(&build_triple));
let host = build.out.join("host");
if host.is_symlink() {
// Left over from a previous build; overwrite it.
// This matters if `build.build` has changed between invocations.
#[cfg(windows)]
t!(fs::remove_dir(&host));
#[cfg(not(windows))]
t!(fs::remove_file(&host));
}
t!(
symlink_dir(&build.config, &build_triple, &host),
format!("symlink_dir({} => {}) failed", host.display(), build_triple.display())
);

build
}

Expand Down

0 comments on commit 85f1a4d

Please sign in to comment.