Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2f13800

Browse files
committed
Cleanup meaningless changes
1 parent bec651e commit 2f13800

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build_system/build_backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ pub(crate) fn build_backend(
3939
eprintln!("[BUILD] rustc_codegen_cranelift");
4040
super::utils::spawn_and_wait(cmd);
4141

42-
Path::new("target").join(&host_triple).join(&channel)
42+
Path::new("target").join(host_triple).join(channel)
4343
}

build_system/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub fn main() {
7373
eprintln!("Switch to the MinGW toolchain for Windows support.");
7474
eprintln!("Hint: You can use `rustup set default-host x86_64-pc-windows-gnu` to");
7575
eprintln!("set the global default target to MinGW");
76-
// process::exit(1);
76+
process::exit(1);
7777
}
7878

7979

@@ -83,7 +83,7 @@ pub fn main() {
8383
if args.next().is_some() {
8484
arg_error!("./y.rs prepare doesn't expect arguments");
8585
}
86-
prepare::prepare(&target_triple);
86+
prepare::prepare(&host_triple);
8787
process::exit(0);
8888
}
8989
Some("build") => Command::Build,

build_system/prepare.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::process::Command;
88
use super::rustc_info::{get_file_name, get_rustc_path, get_rustc_version};
99
use super::utils::{copy_dir_recursively, spawn_and_wait};
1010

11-
pub(crate) fn prepare(target_triple: &str) {
11+
pub(crate) fn prepare(host_triple: &str) {
1212
prepare_sysroot();
1313

1414
eprintln!("[INSTALL] hyperfine");
@@ -49,8 +49,8 @@ pub(crate) fn prepare(target_triple: &str) {
4949
build_cmd.arg("build").env_remove("CARGO_TARGET_DIR").current_dir("simple-raytracer");
5050
spawn_and_wait(build_cmd);
5151
fs::copy(
52-
Path::new("simple-raytracer/target/debug").join(get_file_name("main", "bin", target_triple)),
53-
Path::new("simple-raytracer").join(get_file_name("raytracer_cg_llvm", "bin", target_triple)),
52+
Path::new("simple-raytracer/target/debug").join(get_file_name("main", "bin", host_triple)),
53+
Path::new("simple-raytracer").join(get_file_name("raytracer_cg_llvm", "bin", host_triple)),
5454
)
5555
.unwrap();
5656
}

0 commit comments

Comments
 (0)