4 rustup component add rust-src rustc-dev
5 ./build_sysroot/prepare_sysroot_src.sh
6 cargo install hyperfine || echo "Skipping hyperfine install"
8 git clone https://github.com/rust-lang/regex.git || echo "rust-lang/regex has already been cloned"
11 git checkout 341f207c1071f7290e3f228c710817c280c8dca1
12 git apply ../crate_patches/regex.patch
15 git clone https://github.com/ebobby/simple-raytracer || echo "ebobby/simple-raytracer has already been cloned"
16 pushd simple-raytracer
18 git checkout 804a7a21b9e673a482797aa289a18ed480e4d813
20 # build with cg_llvm for perf comparison
22 mv target/debug/main raytracer_cg_llvm