2021-02-14 07:43:23 -06:00
|
|
|
#!/usr/bin/env bash
|
2020-11-01 09:57:14 -06:00
|
|
|
set -e
|
|
|
|
|
2020-11-04 08:35:42 -06:00
|
|
|
cd "$(dirname "$0")/../"
|
2020-11-01 09:57:14 -06:00
|
|
|
|
2021-03-15 08:21:15 -05:00
|
|
|
source ./scripts/setup_rust_fork.sh
|
2020-11-01 09:57:14 -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
|