Skip to content

Commit 1f49970

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

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

azure-pipelines.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,14 @@ jobs:
5353
- template: install-rust.yml@templates
5454
parameters:
5555
rust: nightly
56+
- bash: |
57+
sudo ln -s /usr/bin/llvm-symbolizer-6.0 /usr/bin/llvm-symbolizer
58+
sed -i '/\[features\]/i [profile.dev]' Cargo.toml
59+
sed -i '/profile.dev/a opt-level = 1' Cargo.toml
60+
cat Cargo.toml
61+
displayName: Enable debug symbols
5662
- script: |
57-
env ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Z sanitizer=address" cargo test --release --features sanitize
63+
env ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Z sanitizer=address" cargo test --features sanitize --target x86_64-unknown-linux-gnu
5864
displayName: cargo -Z sanitizer=address test
5965
- job: lsan
6066
dependsOn: deny
@@ -65,8 +71,14 @@ jobs:
6571
- template: install-rust.yml@templates
6672
parameters:
6773
rust: nightly
74+
- bash: |
75+
sudo ln -s /usr/bin/llvm-symbolizer-6.0 /usr/bin/llvm-symbolizer
76+
sed -i '/\[features\]/i [profile.dev]' Cargo.toml
77+
sed -i '/profile.dev/a opt-level = 1' Cargo.toml
78+
cat Cargo.toml
79+
displayName: Enable debug symbols
6880
- script: |
69-
env RUSTFLAGS="-Z sanitizer=leak" cargo test --release --features sanitize
81+
env RUSTFLAGS="-Z sanitizer=leak" cargo test --features sanitize --target x86_64-unknown-linux-gnu
7082
displayName: cargo -Z sanitizer=leak test
7183
7284
resources:

0 commit comments

Comments
 (0)