diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-23 15:11:57 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-06-27 14:04:01 +0200 |
| commit | 84146b372ab5b9bc3a6e21719750d7f2f66ceb8d (patch) | |
| tree | da4c4d8e15c27125ba5218823918ba02f74aaed7 | |
| parent | 127fa2261b730a42e6d98b7927c3888ecd08f3e0 (diff) | |
| download | rust-84146b372ab5b9bc3a6e21719750d7f2f66ceb8d.tar.gz rust-84146b372ab5b9bc3a6e21719750d7f2f66ceb8d.zip | |
Add `ar_command` in `run_make_support`
| -rw-r--r-- | src/tools/run-make-support/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/run-make-support/src/lib.rs b/src/tools/run-make-support/src/lib.rs index 487132683e9..14b4f14e8f0 100644 --- a/src/tools/run-make-support/src/lib.rs +++ b/src/tools/run-make-support/src/lib.rs @@ -61,6 +61,14 @@ pub fn target() -> String { env_var("TARGET") } +/// `AR` +#[track_caller] +#[must_use] +pub fn ar_command() -> Command { + let ar_path = env_var("AR"); + Command::new(ar_path) +} + /// Check if target is windows-like. #[must_use] pub fn is_windows() -> bool { |
