]> git.proxmox.com Git - rustc.git/blame - src/test/run-make/thumb-none-qemu/script.sh
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / run-make / thumb-none-qemu / script.sh
CommitLineData
a1dfa0c6
XL
1set -exuo pipefail
2
3CRATE=example
4
5env | sort
6mkdir -p $WORK_DIR
7pushd $WORK_DIR
8 rm -rf $CRATE || echo OK
9 cp -a $HERE/example .
10 pushd $CRATE
11 # HACK(eddyb) sets `RUSTC_BOOTSTRAP=1` so Cargo can accept nightly features.
12 # These come from the top-level Rust workspace, that this crate is not a
13 # member of, but Cargo tries to load the workspace `Cargo.toml` anyway.
14 env RUSTC_BOOTSTRAP=1 RUSTFLAGS="-C linker=arm-none-eabi-ld -C link-arg=-Tlink.x" \
1b1a35ee 15 $BOOTSTRAP_CARGO run --target $TARGET | grep "x = 42"
a1dfa0c6 16 env RUSTC_BOOTSTRAP=1 RUSTFLAGS="-C linker=arm-none-eabi-ld -C link-arg=-Tlink.x" \
1b1a35ee 17 $BOOTSTRAP_CARGO run --target $TARGET --release | grep "x = 42"
a1dfa0c6
XL
18 popd
19popd