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