Skip to content

Commit 2f9284d

Browse files
committed
add ubsan to Debug test Profile
1 parent 9ba3dc9 commit 2f9284d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/lang_tests_common.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ pub fn main_inner(profile: Profile) {
115115
}
116116
}
117117
match profile {
118-
Profile::Debug => {}
118+
Profile::Debug => {
119+
compiler.args(["-C", "llvm-args=sanitize-undefined", "-C", "link-args=-lubsan"]);
120+
}
119121
Profile::Release => {
120122
compiler.args(["-C", "opt-level=3", "-C", "lto=no"]);
121123
}

0 commit comments

Comments
 (0)