Skip to content

Commit c5fc4d9

Browse files
committed
WIP: fix CI
1 parent 4d767e1 commit c5fc4d9

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.travis.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ cache:
99
os:
1010
- linux
1111
- osx
12+
dist: xenial
1213

1314
before_script:
15+
# install extra stuff for cross-compilation
16+
- if [[ "$TRAVIS_OS_NAME" == linux ]]; then sudo apt install gcc-multilib; fi
1417
# macOS weirdness (https://github.com/travis-ci/travis-ci/issues/6307, https://github.com/travis-ci/travis-ci/issues/10165)
1518
- if [[ "$TRAVIS_OS_NAME" == osx ]]; then rvm get stable; fi
1619
# Compute the rust version we use. We do not use "language: rust" to have more control here.
1720
- |
18-
if [ "$TRAVIS_EVENT_TYPE" = cron ]; then
21+
if [[ "$TRAVIS_EVENT_TYPE" == cron ]]; then
1922
RUST_TOOLCHAIN=nightly
2023
else
2124
RUST_TOOLCHAIN=$(cat rust-version)
@@ -38,10 +41,13 @@ script:
3841
cargo build --release --all-features --all-targets &&
3942
cargo install --all-features --force --path .
4043
- |
41-
# Get ourselves a MIR-full libstd
44+
# Get ourselves a MIR-full libstd for the host and a foreign architecture
4245
cargo miri setup &&
43-
cargo miri setup --target i686-unknown-linux-gnu &&
44-
cargo miri setup --target i686-apple-darwin
46+
if [[ "$TRAVIS_OS_NAME" == osx ]]; then
47+
cargo miri setup --target i686-apple-darwin
48+
else
49+
cargo miri setup --target i686-unknown-linux-gnu
50+
fi
4551
- |
4652
# Test miri with full MIR, on the host and other architectures
4753
MIRI_SYSROOT=$MIRI_SYSROOT_BASE/HOST cargo test --release --all-features &&

appveyor.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ build: false
2727
test_script:
2828
- set RUSTFLAGS=-g
2929
- set RUST_BACKTRACE=1
30-
# Test plain miri
30+
# Build miri
3131
- cargo build --release --all-features --all-targets
32-
- cargo test --release --all-features
3332
# Get ourselves a MIR-full libstd, and use it henceforth
3433
- cargo run --release --all-features --bin cargo-miri -- miri setup
3534
- set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\miri\miri\cache\HOST

src/fn_call.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ impl<'a, 'mir, 'tcx: 'mir + 'a> EvalContextExt<'tcx, 'mir> for super::MiriEvalCo
583583
self.write_null(dest)?;
584584
}
585585

586-
"mmap" => {
586+
"mmap" | "mmap$UNIX2003" => {
587587
// This is a horrible hack, but well... the guard page mechanism calls mmap and expects a particular return value, so we give it that value
588588
let addr = self.read_scalar(args[0])?.not_undef()?;
589589
self.write_scalar(addr, dest)?;

0 commit comments

Comments
 (0)