Skip to content

Commit dece5bc

Browse files
committed
fix bad use of FOREIGN_TARGET
1 parent 82fe771 commit dece5bc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

travis.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ echo
1313

1414
# Test
1515
function run_tests {
16-
if [ -n "${FOREIGN_TARGET+exists}" ]; then
17-
echo "Testing foreign architecture $FOREIGN_TARGET"
16+
if [ -n "${MIRI_TEST_TARGET+exists}" ]; then
17+
echo "Testing foreign architecture $MIRI_TEST_TARGET"
1818
else
1919
echo "Testing host architecture"
2020
fi
2121

2222
./miri test --locked
23-
if ! [ -n "${FOREIGN_TARGET+exists}" ]; then
23+
if ! [ -n "${MIRI_TEST_TARGET+exists}" ]; then
2424
# Only for host architecture: tests with MIR optimizations
2525
MIRI_TEST_FLAGS="-Z mir-opt-level=3" ./miri test
2626
fi
@@ -38,10 +38,10 @@ MIRI_TEST_TARGET=i686-unknown-linux-gnu run_tests
3838

3939
if [ "$TRAVIS_OS_NAME" == linux ]; then
4040
# cross-test 64bit macOS from Linux
41-
FOREIGN_TARGET=x86_64-apple-darwin run_tests
41+
MIRI_TEST_TARGET=x86_64-apple-darwin run_tests
4242
# cross-test 32bit Windows from Linux
43-
FOREIGN_TARGET=i686-pc-windows-msvc run_tests
43+
MIRI_TEST_TARGET=i686-pc-windows-msvc run_tests
4444
elif [ "$TRAVIS_OS_NAME" == osx ]; then
4545
# cross-test 64bit Windows from macOS
46-
FOREIGN_TARGET=x86_64-pc-windows-msvc run_tests
46+
MIRI_TEST_TARGET=x86_64-pc-windows-msvc run_tests
4747
fi

0 commit comments

Comments
 (0)