Skip to content

Commit

Permalink
Update sanitizers.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
spacejam authored Jan 8, 2020
1 parent 059688f commit 2e94968
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sanitizers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ echo "asan"
cargo clean
export RUSTFLAGS="-Z sanitizer=address"
export ASAN_OPTIONS="detect_odr_violation=0"
cargo +nightly build --tests --target x86_64-unknown-linux-gnu
cargo +nightly build --example nop --target x86_64-unknown-linux-gnu
./target/debug/examples/nop
unset ASAN_OPTIONS

echo "lsan"
cargo clean
export RUSTFLAGS="-Z sanitizer=leak"
cargo +nightly run --example=o_direct --target x86_64-unknown-linux-gnu
cargo +nightly build --example nop --target x86_64-unknown-linux-gnu
./target/debug/examples/nop

echo "tsan"
cargo clean
export RUSTFLAGS="-Z sanitizer=thread"
cargo +nightly run --example=o_direct --target x86_64-unknown-linux-gnu
cargo +nightly build --example nop --target x86_64-unknown-linux-gnu
./target/debug/examples/nop

0 comments on commit 2e94968

Please sign in to comment.