]> git.lizzy.rs Git - rust.git/blobdiff - prepare.sh
Enable Cranelift optimizations when optimizing
[rust.git] / prepare.sh
index c0ff44eaf5d020470c32b650b5ae818a5dc551a7..08e7cb1802999867d9427d58f478983dbe7fd133 100755 (executable)
@@ -1,10 +1,17 @@
 #!/bin/bash --verbose
 set -e
 
-rustup component add rust-src rustc-dev
+rustup component add rust-src rustc-dev llvm-tools-preview
 ./build_sysroot/prepare_sysroot_src.sh
 cargo install hyperfine || echo "Skipping hyperfine install"
 
+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
+
 git clone https://github.com/rust-lang/regex.git || echo "rust-lang/regex has already been cloned"
 pushd regex
 git checkout -- .
@@ -17,6 +24,7 @@ git checkout -- .
 git checkout 804a7a21b9e673a482797aa289a18ed480e4d813
 
 # build with cg_llvm for perf comparison
+unset CARGO_TARGET_DIR
 cargo build
 mv target/debug/main raytracer_cg_llvm
 popd