Create dir for build_triple

This commit is contained in:
Mu001999 2023-03-14 11:22:45 +08:00
parent 22f247c6f3
commit a4692f46c4

View File

@ -495,6 +495,7 @@ pub fn new(mut config: Config) -> Build {
// Make a symbolic link so we can use a consistent directory in the documentation.
let build_triple = build.out.join(&build.build.triple);
t!(fs::create_dir_all(&build_triple));
let host = build.out.join("host");
if let Err(e) = symlink_dir(&build.config, &build_triple, &host) {
if e.kind() != ErrorKind::AlreadyExists {