#target-triple #command-line-tool #default #compiler #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

#1647 in Development tools

Download history 42/week @ 2024-02-25 51/week @ 2024-03-03 101/week @ 2024-03-10 141/week @ 2024-03-17 189/week @ 2024-03-24 170/week @ 2024-03-31 138/week @ 2024-04-07 100/week @ 2024-04-14 83/week @ 2024-04-21 85/week @ 2024-04-28 101/week @ 2024-05-05 67/week @ 2024-05-12 126/week @ 2024-05-19 101/week @ 2024-05-26 104/week @ 2024-06-02 121/week @ 2024-06-09

460 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