Skip to content

Commit 683a72c

Browse files
committed
Enable debug info in sanitized runs
1 parent 1ed709a commit 683a72c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

azure-pipelines.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ jobs:
5353
- template: install-rust.yml@templates
5454
parameters:
5555
rust: nightly
56+
- bash: |
57+
sed -i '/\[features\]/i [profile.release]' Cargo.toml
58+
sed -i '/profile.release/a debug = true' Cargo.toml
59+
sed -i '/\[features\]/i [profile.bench]' Cargo.toml
60+
sed -i '/profile.bench/a debug = true' Cargo.toml
61+
cat Cargo.toml
62+
displayName: Enable debug symbols
5663
- script: |
5764
env ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Z sanitizer=address" cargo test --release --features sanitize
5865
displayName: cargo -Z sanitizer=address test
@@ -65,6 +72,13 @@ jobs:
6572
- template: install-rust.yml@templates
6673
parameters:
6774
rust: nightly
75+
- bash: |
76+
sed -i '/\[features\]/i [profile.release]' Cargo.toml
77+
sed -i '/profile.release/a debug = true' Cargo.toml
78+
sed -i '/\[features\]/i [profile.bench]' Cargo.toml
79+
sed -i '/profile.bench/a debug = true' Cargo.toml
80+
cat Cargo.toml
81+
displayName: Enable debug symbols
6882
- script: |
6983
env RUSTFLAGS="-Z sanitizer=leak" cargo test --release --features sanitize
7084
displayName: cargo -Z sanitizer=leak test

0 commit comments

Comments
 (0)