File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 53
53
- template : install-rust.yml@templates
54
54
parameters :
55
55
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
56
63
- script : |
57
64
env ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Z sanitizer=address" cargo test --release --features sanitize
58
65
displayName: cargo -Z sanitizer=address test
65
72
- template : install-rust.yml@templates
66
73
parameters :
67
74
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
68
82
- script : |
69
83
env RUSTFLAGS="-Z sanitizer=leak" cargo test --release --features sanitize
70
84
displayName: cargo -Z sanitizer=leak test
You can’t perform that action at this time.
0 commit comments