2018-12-14 06:58:33 -06:00
|
|
|
#!/bin/bash --verbose
|
|
|
|
set -e
|
|
|
|
|
2020-11-27 11:05:05 -06:00
|
|
|
rustup component add rust-src rustc-dev llvm-tools-preview
|
2018-12-14 06:58:33 -06:00
|
|
|
./build_sysroot/prepare_sysroot_src.sh
|
|
|
|
cargo install hyperfine || echo "Skipping hyperfine install"
|
2019-07-30 06:37:47 -05:00
|
|
|
|
2020-08-15 13:55:03 -05:00
|
|
|
git clone https://github.com/rust-random/rand.git || echo "rust-random/rand has already been cloned"
|
|
|
|
pushd rand
|
|
|
|
git checkout -- .
|
|
|
|
git checkout 0f933f9c7176e53b2a3c7952ded484e1783f0bf1
|
|
|
|
git am ../crate_patches/*-rand-*.patch
|
|
|
|
popd
|
|
|
|
|
2019-07-30 06:37:47 -05:00
|
|
|
git clone https://github.com/rust-lang/regex.git || echo "rust-lang/regex has already been cloned"
|
|
|
|
pushd regex
|
|
|
|
git checkout -- .
|
|
|
|
git checkout 341f207c1071f7290e3f228c710817c280c8dca1
|
|
|
|
popd
|
2019-08-30 10:29:38 -05:00
|
|
|
|
|
|
|
git clone https://github.com/ebobby/simple-raytracer || echo "ebobby/simple-raytracer has already been cloned"
|
|
|
|
pushd simple-raytracer
|
|
|
|
git checkout -- .
|
|
|
|
git checkout 804a7a21b9e673a482797aa289a18ed480e4d813
|
|
|
|
|
|
|
|
# build with cg_llvm for perf comparison
|
2020-11-03 19:33:42 -06:00
|
|
|
unset CARGO_TARGET_DIR
|
2019-08-30 10:29:38 -05:00
|
|
|
cargo build
|
|
|
|
mv target/debug/main raytracer_cg_llvm
|
|
|
|
popd
|