2021-03-05 12:12:59 -06:00
|
|
|
#!/usr/bin/env bash
|
2020-11-03 04:00:04 -06:00
|
|
|
set -e
|
|
|
|
|
2020-11-27 13:48:53 -06:00
|
|
|
cd "$(dirname "$0")/../"
|
2020-11-03 04:00:04 -06:00
|
|
|
|
2021-03-29 03:45:09 -05:00
|
|
|
source ./scripts/setup_rust_fork.sh
|
2020-11-03 04:00:04 -06:00
|
|
|
|
|
|
|
echo "[TEST] Bootstrap of rustc"
|
|
|
|
pushd rust
|
|
|
|
rm -r compiler/rustc_codegen_cranelift/{Cargo.*,src}
|
|
|
|
cp ../Cargo.* compiler/rustc_codegen_cranelift/
|
|
|
|
cp -r ../src compiler/rustc_codegen_cranelift/src
|
|
|
|
|
|
|
|
./x.py build --stage 1 library/std
|
|
|
|
popd
|