Skip to content

Commit

Permalink
Update miri_tb.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Sep 15, 2024
1 parent a870049 commit e9e6706
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions ci/miri_tb.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
#!/bin/bash
set -e

# Check if TARGET and FEATURES are provided, otherwise panic
if [ -z "$1" ]; then
echo "Error: TARGET is not provided"
exit 1
fi

if [ -z "$2" ]; then
echo "Error: FEATURES are not provided"
exit 1
fi

TARGET=$1
FEATURES=$2

rustup toolchain install nightly --component miri
rustup override set nightly
cargo miri setup

# Default target platform and features if none are passed
TARGET=${1:-x86_64-unknown-linux-gnu}
FEATURES=${2:-test-swmr}

export MIRIFLAGS="-Zmiri-symbolic-alignment-check -Zmiri-disable-isolation -Zmiri-tree-borrows"

Expand Down

0 comments on commit e9e6706

Please sign in to comment.