Skip to content

Commit 29113bf

Browse files
Add ar_command in run_make_support
1 parent 05468cf commit 29113bf

File tree

1 file changed

+8
-0
lines changed
  • src/tools/run-make-support/src

1 file changed

+8
-0
lines changed

src/tools/run-make-support/src/lib.rs

+8
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ pub fn target() -> String {
6161
env_var("TARGET")
6262
}
6363

64+
/// `AR`
65+
#[track_caller]
66+
#[must_use]
67+
pub fn ar_command() -> Command {
68+
let ar_path = env_var("AR");
69+
Command::new(ar_path)
70+
}
71+
6472
/// Check if target is windows-like.
6573
#[must_use]
6674
pub fn is_windows() -> bool {

0 commit comments

Comments
 (0)