da79779db2
This is the first time we pin a specific Cranelift commit hash to use in Gecko. The target-lexicon hack is removed and instead we introduce a vendor patch for cranelift-codegen/cranelift-wasm themselves. Notable changes happen in top-level Cargo.toml, .cargo/config.in and js/src/wasm/cranelift/Cargo.toml; the rest has been generated by `mach vendor rust`. Differential Revision: https://phabricator.services.mozilla.com/D27316 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
examples | ||
src | ||
.cargo-checksum.json | ||
Cargo.toml | ||
LICENSE | ||
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.