-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #573 from RalfJung/rustc-wrapper
use RUSTC_WRAPPER for the cargo hook
- Loading branch information
Showing
4 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Determine configuration | ||
if [ "$TRAVIS_OS_NAME" == osx ]; then | ||
export MIRI_SYSROOT_BASE=~/Library/Caches/miri.miri.miri/ | ||
FOREIGN_TARGET=i686-apple-darwin | ||
else | ||
export MIRI_SYSROOT_BASE=~/.cache/miri/ | ||
FOREIGN_TARGET=i686-unknown-linux-gnu | ||
fi | ||
|
||
echo "Build and install miri" | ||
cargo build --release --all-features --all-targets && | ||
cargo install --all-features --force --path . | ||
echo | ||
|
||
echo "Get ourselves a MIR-full libstd for the host and a foreign architecture" | ||
cargo miri setup && | ||
cargo miri setup --target "$FOREIGN_TARGET" | ||
echo | ||
|
||
echo "Test miri with full MIR, on the host and other architectures" | ||
MIRI_SYSROOT=$MIRI_SYSROOT_BASE/HOST cargo test --release --all-features && | ||
MIRI_SYSROOT=$MIRI_SYSROOT_BASE MIRI_TARGET=$FOREIGN_TARGET cargo test --release --all-features | ||
echo | ||
|
||
echo "Test cargo integration" | ||
(cd test-cargo-miri && MIRI_SYSROOT=$MIRI_SYSROOT_BASE/HOST ./run-test.py) | ||
echo |