2021-03-05 19:12:59 +01:00
|
|
|
#!/usr/bin/env bash
|
2020-11-03 11:00:04 +01:00
|
|
|
set -e
|
|
|
|
|
2020-11-27 20:48:53 +01:00
|
|
|
cd "$(dirname "$0")/../"
|
2020-11-03 11:00:04 +01:00
|
|
|
|
2021-03-29 10:45:09 +02:00
|
|
|
source ./scripts/setup_rust_fork.sh
|
2020-11-03 11:00:04 +01: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
|