Skip to content

Commit

Permalink
Work around rust-lang/rust#53945
Browse files Browse the repository at this point in the history
The fix of using `ld.gold` from
rust-lang/rust#53945 (comment)
sadly did not work for me, so instead we're going to only run ASAN on
unit and integration tests. It's not great.
  • Loading branch information
jonhoo committed Feb 4, 2020
1 parent f85c76f commit e72af30
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,10 @@ jobs:
rust: nightly
- bash: |
sudo ln -s /usr/bin/llvm-symbolizer-6.0 /usr/bin/llvm-symbolizer
sed -i '/\[features\]/i [profile.dev]' Cargo.toml
sed -i '/profile.dev/a opt-level = 1' Cargo.toml
cat Cargo.toml
displayName: Enable debug symbols
# only --lib --tests b/c of https://github.com/rust-lang/rust/issues/53945
- script: |
env ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Z sanitizer=address" cargo test --features sanitize --target x86_64-unknown-linux-gnu
env ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Z sanitizer=address" cargo test --lib --tests --features sanitize --target x86_64-unknown-linux-gnu
displayName: cargo -Z sanitizer=address test
- job: lsan
dependsOn: deny
Expand Down

0 comments on commit e72af30

Please sign in to comment.