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
|
|
|
|
|
2023-10-29 18:53:38 +00:00
|
|
|
# CG_CLIF_FORCE_GNU_AS will force usage of as instead of the LLVM backend of rustc as we
|
|
|
|
# the LLVM backend isn't compiled in here.
|
|
|
|
CG_CLIF_FORCE_GNU_AS=1 ./x.py build --stage 1 library/std
|
2020-11-01 16:57:14 +01:00
|
|
|
popd
|