-
Notifications
You must be signed in to change notification settings - Fork 214
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 #1002 from rust-lang/miri
Install and prepare Miri in the primary container
- Loading branch information
Showing
8 changed files
with
323 additions
and
180 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
export MIRI_SYSROOT=~/.cache/miri | ||
export MIRIFLAGS="-Zmiri-disable-isolation" | ||
exec cargo miri run |
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 |
---|---|---|
@@ -1,13 +1,6 @@ | ||
ARG base_image=shepmaster/rust-nightly | ||
FROM ${base_image} | ||
|
||
RUN rustup component add rust-src miri | ||
|
||
RUN echo 'fn main() {}' > src/main.rs | ||
RUN cargo miri setup | ||
RUN cargo miri run | ||
RUN rm src/*.rs | ||
|
||
ADD --chown=playground cargo-miri-playground /playground/.cargo/bin | ||
# The base image takes care of all this for now | ||
|
||
ENTRYPOINT ["/playground/tools/entrypoint.sh"] |
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
Oops, something went wrong.