File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
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
+ 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
56
62
- 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
58
64
displayName: cargo -Z sanitizer=address test
59
65
- job : lsan
60
66
dependsOn : deny
65
71
- template : install-rust.yml@templates
66
72
parameters :
67
73
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
68
80
- 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
70
82
displayName: cargo -Z sanitizer=leak test
71
83
72
84
resources :
You can’t perform that action at this time.
0 commit comments