@@ -3,7 +3,7 @@ use std::io::Write;
33use std:: path:: Path ;
44use std:: process:: Command ;
55
6- use crate :: path:: { Dirs , RelPath } ;
6+ use crate :: path:: Dirs ;
77use crate :: prepare:: GitRepo ;
88use crate :: rustc_info:: get_file_name;
99use crate :: utils:: { Compiler , spawn_and_wait} ;
@@ -39,11 +39,11 @@ fn benchmark_simple_raytracer(dirs: &Dirs, bootstrap_host_compiler: &Compiler) {
3939 } ;
4040
4141 eprintln ! ( "[BENCH COMPILE] ebobby/simple-raytracer" ) ;
42- let cargo_clif = RelPath :: DIST
43- . to_path ( dirs )
42+ let cargo_clif = dirs
43+ . dist_dir
4444 . join ( get_file_name ( & bootstrap_host_compiler. rustc , "cargo_clif" , "bin" ) . replace ( '_' , "-" ) ) ;
4545 let manifest_path = SIMPLE_RAYTRACER_REPO . source_dir ( ) . to_path ( dirs) . join ( "Cargo.toml" ) ;
46- let target_dir = RelPath :: BUILD . join ( "simple_raytracer" ) . to_path ( dirs ) ;
46+ let target_dir = dirs . build_dir . join ( "simple_raytracer" ) ;
4747
4848 let clean_cmd = format ! (
4949 "RUSTC=rustc cargo clean --manifest-path {manifest_path} --target-dir {target_dir}" ,
@@ -68,7 +68,7 @@ fn benchmark_simple_raytracer(dirs: &Dirs, bootstrap_host_compiler: &Compiler) {
6868 target_dir = target_dir. display( ) ,
6969 ) ;
7070
71- let bench_compile_markdown = RelPath :: DIST . to_path ( dirs) . join ( "bench_compile.md" ) ;
71+ let bench_compile_markdown = dirs. dist_dir . join ( "bench_compile.md" ) ;
7272
7373 let bench_compile = hyperfine_command (
7474 1 ,
@@ -92,7 +92,7 @@ fn benchmark_simple_raytracer(dirs: &Dirs, bootstrap_host_compiler: &Compiler) {
9292
9393 eprintln ! ( "[BENCH RUN] ebobby/simple-raytracer" ) ;
9494
95- let bench_run_markdown = RelPath :: DIST . to_path ( dirs) . join ( "bench_run.md" ) ;
95+ let bench_run_markdown = dirs. dist_dir . join ( "bench_run.md" ) ;
9696
9797 let raytracer_cg_llvm = Path :: new ( "." ) . join ( get_file_name (
9898 & bootstrap_host_compiler. rustc ,
@@ -120,7 +120,7 @@ fn benchmark_simple_raytracer(dirs: &Dirs, bootstrap_host_compiler: &Compiler) {
120120 ] ,
121121 & bench_run_markdown,
122122 ) ;
123- bench_run. current_dir ( RelPath :: BUILD . to_path ( dirs) ) ;
123+ bench_run. current_dir ( & dirs. build_dir ) ;
124124 spawn_and_wait ( bench_run) ;
125125
126126 if let Some ( gha_step_summary) = gha_step_summary. as_mut ( ) {
0 commit comments