Skip to content

Commit 336a59d

Browse files
committed
rename MIRI_TARGET -> MIRI_COMPILETEST_TARGET to clarify that this affects compiletest only
1 parent 72cd133 commit 336a59d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/compiletest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fn get_host() -> String {
101101
}
102102

103103
fn get_target() -> String {
104-
std::env::var("MIRI_TARGET").unwrap_or_else(|_| get_host())
104+
std::env::var("MIRI_COMPILETEST_TARGET").unwrap_or_else(|_| get_host())
105105
}
106106

107107
fn run_pass_miri(opt: bool) {

travis.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ echo
2222

2323
echo "Test miri with full MIR, on the host and other architectures"
2424
MIRI_SYSROOT="$MIRI_SYSROOT_BASE"/HOST cargo test --release --all-features
25-
MIRI_SYSROOT="$MIRI_SYSROOT_BASE" MIRI_TARGET="$FOREIGN_TARGET" cargo test --release --all-features
25+
MIRI_SYSROOT="$MIRI_SYSROOT_BASE" MIRI_COMPILETEST_TARGET="$FOREIGN_TARGET" cargo test --release --all-features
2626
echo
2727

2828
echo "Test cargo integration"

0 commit comments

Comments
 (0)