File tree 6 files changed +16
-11
lines changed
6 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 19
19
// only-linux
20
20
//
21
21
// revisions:ASAN ASAN-FAT-LTO
22
- //[ASAN] compile-flags: -Zsanitizer=address
23
- //[ASAN-FAT-LTO] compile-flags: -Zsanitizer=address -Cprefer-dynamic=false -Clto=fat
22
+ // compile-flags: -Zsanitizer=address -Ctarget-feature=-crt-static
23
+ //[ASAN] compile-flags:
24
+ //[ASAN-FAT-LTO] compile-flags: -Cprefer-dynamic=false -Clto=fat
24
25
25
26
#![ crate_type="staticlib" ]
26
27
Original file line number Diff line number Diff line change 4
4
// needs-sanitizer-memory
5
5
// revisions:MSAN-0 MSAN-1 MSAN-2 MSAN-1-LTO MSAN-2-LTO
6
6
//
7
- //[MSAN-0] compile-flags: -Zsanitizer=memory
8
- //[MSAN-1] compile-flags: -Zsanitizer=memory -Zsanitizer-memory-track-origins=1
9
- //[MSAN-2] compile-flags: -Zsanitizer=memory -Zsanitizer-memory-track-origins
10
- //[MSAN-1-LTO] compile-flags: -Zsanitizer=memory -Zsanitizer-memory-track-origins=1 -C lto=fat
11
- //[MSAN-2-LTO] compile-flags: -Zsanitizer=memory -Zsanitizer-memory-track-origins -C lto=fat
7
+ // compile-flags: -Zsanitizer=memory -Ctarget-feature=-crt-static
8
+ //[MSAN-0] compile-flags:
9
+ //[MSAN-1] compile-flags: -Zsanitizer-memory-track-origins=1
10
+ //[MSAN-2] compile-flags: -Zsanitizer-memory-track-origins
11
+ //[MSAN-1-LTO] compile-flags: -Zsanitizer-memory-track-origins=1 -C lto=fat
12
+ //[MSAN-2-LTO] compile-flags: -Zsanitizer-memory-track-origins -C lto=fat
12
13
13
14
#![ crate_type="lib" ]
14
15
Original file line number Diff line number Diff line change 4
4
// needs-sanitizer-address
5
5
// needs-sanitizer-leak
6
6
// revisions: ASAN LSAN
7
- //[ASAN] compile-flags: -Zsanitizer=address -C opt-level=3 -Z mir-opt-level=4
8
- //[LSAN] compile-flags: -Zsanitizer=leak -C opt-level=3 -Z mir-opt-level=4
7
+ // compile-flags: -Copt-level=3 -Zmir-opt-level=4 -Ctarget-feature=-crt-static
8
+ //[ASAN] compile-flags: -Zsanitizer=address
9
+ //[LSAN] compile-flags: -Zsanitizer=leak
9
10
10
11
#![ crate_type="lib" ]
11
12
#![ feature( no_sanitize) ]
Original file line number Diff line number Diff line change 2
2
// selectively disable sanitizer instrumentation.
3
3
//
4
4
// needs-sanitizer-address
5
- // compile-flags: -Zsanitizer=address
5
+ // compile-flags: -Zsanitizer=address -Ctarget-feature=-crt-static
6
6
7
7
#![ crate_type="lib" ]
8
8
#![ feature( no_sanitize) ]
Original file line number Diff line number Diff line change 6
6
// revisions:ASAN ASAN-RECOVER MSAN MSAN-RECOVER MSAN-RECOVER-LTO
7
7
// no-prefer-dynamic
8
8
//
9
+ // compile-flags: -Ctarget-feature=-crt-static
9
10
//[ASAN] compile-flags: -Zsanitizer=address -Copt-level=0
10
11
//[ASAN-RECOVER] compile-flags: -Zsanitizer=address -Zsanitizer-recover=address -Copt-level=0
11
12
//[MSAN] compile-flags: -Zsanitizer=memory
Original file line number Diff line number Diff line change 3
3
4
4
// check-pass
5
5
// revisions: address cfi kcfi leak memory thread
6
+ //compile-flags: -Ctarget-feature=-crt-static
6
7
//[address]needs-sanitizer-address
7
8
//[address]compile-flags: -Zsanitizer=address --cfg address
8
9
//[cfi]needs-sanitizer-cfi
9
10
//[cfi]compile-flags: -Zsanitizer=cfi --cfg cfi
10
- //[cfi]compile-flags: -Clto -Ccodegen-units=1 -Ctarget-feature=-crt-static
11
+ //[cfi]compile-flags: -Clto -Ccodegen-units=1
11
12
//[kcfi]needs-llvm-components: x86
12
13
//[kcfi]compile-flags: -Zsanitizer=kcfi --cfg kcfi --target x86_64-unknown-none
13
14
//[leak]needs-sanitizer-leak
You can’t perform that action at this time.
0 commit comments