Skip to content

Commit

Permalink
Add needs-ar compiletest instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 24, 2024
1 parent 10990e2 commit f62afdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tools/compiletest/src/header/needs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ pub(super) fn handle_needs(
condition: config.runner.as_ref().is_some_and(|r| r.contains("wasmtime")),
ignore_reason: "ignored when wasmtime runner is not available",
},
Need {
name: "needs-ar",
condition: !config.target.contains("msvc"),
ignore_reason: "ignored when ar command is not available",
},
];

let (name, comment) = match ln.split_once([':', ' ']) {
Expand Down
2 changes: 2 additions & 0 deletions tests/run-make/invalid-library/rmake.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//@ needs-ar

use run_make_support::fs_wrapper::create_file;
use run_make_support::{ar_command, rustc};

Expand Down

0 comments on commit f62afdc

Please sign in to comment.