]>
Commit | Line | Data |
---|---|---|
6a06907d | 1 | #!/usr/bin/env bash |
29967ef6 XL |
2 | set -e |
3 | ||
29967ef6 XL |
4 | ./build_sysroot/prepare_sysroot_src.sh |
5 | cargo install hyperfine || echo "Skipping hyperfine install" | |
6 | ||
7 | git clone https://github.com/rust-random/rand.git || echo "rust-random/rand has already been cloned" | |
8 | pushd rand | |
9 | git checkout -- . | |
10 | git checkout 0f933f9c7176e53b2a3c7952ded484e1783f0bf1 | |
11 | git am ../crate_patches/*-rand-*.patch | |
12 | popd | |
13 | ||
14 | git clone https://github.com/rust-lang/regex.git || echo "rust-lang/regex has already been cloned" | |
15 | pushd regex | |
16 | git checkout -- . | |
17 | git checkout 341f207c1071f7290e3f228c710817c280c8dca1 | |
18 | popd | |
19 | ||
20 | git clone https://github.com/ebobby/simple-raytracer || echo "ebobby/simple-raytracer has already been cloned" | |
21 | pushd simple-raytracer | |
22 | git checkout -- . | |
23 | git checkout 804a7a21b9e673a482797aa289a18ed480e4d813 | |
24 | ||
25 | # build with cg_llvm for perf comparison | |
fc512014 | 26 | unset CARGO_TARGET_DIR |
29967ef6 XL |
27 | cargo build |
28 | mv target/debug/main raytracer_cg_llvm | |
29 | popd |