Skip to content

Commit f62afdc

Browse files
Add needs-ar compiletest instruction
1 parent 10990e2 commit f62afdc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ pub(super) fn handle_needs(
144144
condition: config.runner.as_ref().is_some_and(|r| r.contains("wasmtime")),
145145
ignore_reason: "ignored when wasmtime runner is not available",
146146
},
147+
Need {
148+
name: "needs-ar",
149+
condition: !config.target.contains("msvc"),
150+
ignore_reason: "ignored when ar command is not available",
151+
},
147152
];
148153

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

tests/run-make/invalid-library/rmake.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ needs-ar
2+
13
use run_make_support::fs_wrapper::create_file;
24
use run_make_support::{ar_command, rustc};
35

0 commit comments

Comments
 (0)