Skip to content

Commit 767c4b9

Browse files
committed
add support for needs-dynamic-linking
1 parent 04f658f commit 767c4b9

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

src/tools/compiletest/src/header/needs.rs

+5
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ pub(super) fn handle_needs(
130130
condition: config.git_hash,
131131
ignore_reason: "ignored when git hashes have been omitted for building",
132132
},
133+
Need {
134+
name: "needs-dynamic-linking",
135+
condition: config.target_cfg().dynamic_linking,
136+
ignore_reason: "ignored on targets without dynamic linking",
137+
},
133138
];
134139

135140
let (name, comment) = match ln.split_once([':', ' ']) {

tests/ui/issues/issue-12133-3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// aux-build:issue-12133-dylib2.rs
55
// ignore-emscripten no dylib support
66
// ignore-musl
7-
// ignore-sgx no dylib support
7+
// needs-dynamic-linking
88

99
// pretty-expanded FIXME #23616
1010

tests/ui/issues/issue-85461.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// compile-flags: -Cinstrument-coverage -Ccodegen-units=4 --crate-type dylib -Copt-level=0
22
// build-pass
33
// needs-profiler-support
4+
// needs-dynamic-linking
45

56
// Regression test for #85461 where MSVC sometimes fails to link instrument-coverage binaries
67
// with dead code and #[inline(always)].

tests/ui/proc-macro/crt-static.rs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// build-pass
88
// force-host
99
// no-prefer-dynamic
10+
// needs-dynamic-linking
1011

1112
#![crate_type = "proc-macro"]
1213

0 commit comments

Comments
 (0)