#target-triple #command-line-tool #compiler #default #llvm #print #find

app default-target

A command line tool to print the current default Clang/LLVM target triple

1 unstable release

0.1.0 Jul 16, 2021

#1556 in Development tools

Download history 210/week @ 2024-07-23 167/week @ 2024-07-30 232/week @ 2024-08-06 230/week @ 2024-08-13 287/week @ 2024-08-20 290/week @ 2024-08-27 209/week @ 2024-09-03 204/week @ 2024-09-10 188/week @ 2024-09-17 231/week @ 2024-09-24 223/week @ 2024-10-01 204/week @ 2024-10-08 204/week @ 2024-10-15 330/week @ 2024-10-22 177/week @ 2024-10-29 248/week @ 2024-11-05

998 downloads per month

MIT license

6KB

default-target

A command line tool to print the current default Clang/LLVM target triple.

The LLVM ecosystem names compiler targets as target triples, made up of three to five parameters describing the target system.

This crate is a small binary program that returns the default target triple for your current Rust installation. This program is useful if you want to write shell scripts or other simple programs that are aware of your Rust installation's default target.

You can find default-target's crate metadata on crates.io, documentation on docs.rs, and source code on GitHub.

Installation

Run this command in your shell to install default-target.

cargo install default-target

Usage

Once default-target has been installed in your path, you can run:

default-target

and it should return your target. Something like: x86_64-apple-darwin or x86_64-unknown-linux-gnu.

No runtime deps