Skip to content

Commit

Permalink
Enable debug info in sanitized runs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Jan 29, 2020
1 parent 1ed709a commit 902776f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ jobs:
- template: install-rust.yml@templates
parameters:
rust: nightly
- bash: |
sed -i '/dev-dependencies/i [profile.release]' Cargo.toml
sed -i '/profile.release/a debug = true' Cargo.toml
cat Cargo.toml
displayName: Enable debug symbols
- script: |
env ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Z sanitizer=address" cargo test --release --features sanitize
displayName: cargo -Z sanitizer=address test
Expand All @@ -65,6 +70,11 @@ jobs:
- template: install-rust.yml@templates
parameters:
rust: nightly
- bash: |
sed -i '/\[features\]/i [profile.release]' Cargo.toml
sed -i '/profile.release/a debug = true' Cargo.toml
cat Cargo.toml
displayName: Enable debug symbols
- script: |
env RUSTFLAGS="-Z sanitizer=leak" cargo test --release --features sanitize
displayName: cargo -Z sanitizer=leak test
Expand Down

0 comments on commit 902776f

Please sign in to comment.