Skip to content

Commit 22cac46

Browse files
Add needs-ar compiletest instruction
1 parent 62a5acc commit 22cac46

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
Need {
148153
name: "needs-symlink",
149154
condition: cache.symlinks,

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)