gecko-dev/third_party/rust/target-lexicon
Dan Gohman 5a29eec31b Bug 1505777: Run mach-vendor-rust to update Cranelift. rs=bbouvier
--HG--
rename : third_party/rust/cranelift-codegen/src/preopt.rs => third_party/rust/cranelift-codegen/src/simple_preopt.rs
extra : rebase_source : e9c973e47af683a16a08b5161250ad1bbd7d684f
2018-11-09 05:16:08 -08:00
..
examples
src Bug 1505777: Run mach-vendor-rust to update Cranelift. rs=bbouvier 2018-11-09 05:16:08 -08:00
.cargo-checksum.json Bug 1505777: Run mach-vendor-rust to update Cranelift. rs=bbouvier 2018-11-09 05:16:08 -08:00
Cargo.toml Bug 1505777: Run mach-vendor-rust to update Cranelift. rs=bbouvier 2018-11-09 05:16:08 -08:00
LICENSE Bug 1505777: Run mach-vendor-rust to update Cranelift. rs=bbouvier 2018-11-09 05:16:08 -08:00
README.md
build.rs

README.md

This is a library for managing targets for compilers and related tools.

Currently, the main feature is support for decoding "triples", which are strings that identify a particular target configuration. This library provides a Triple struct containing enums for each of fields of a triple. Triple implements FromStr and fmt::Display so it can be converted to and from the conventional string representation of a triple.

Triple also has functions for querying a triple's endianness, pointer bit width, and binary format.

And, Triple and the enum types have host() constructors, for targeting the host.

It supports all triples currently used by rustc and rustup.

It does not support reading JSON target files itself. To use it with a JSON target file, construct a Triple using the value of the "llvm-target" field.