Some stuff used by rustc that doesn’t have many dependencies
Originally extracted from rustc::back, which was nominally the compiler ‘backend’, though LLVM is rustc’s backend, so rustc_target is really just odds-and-ends relating to code gen and linking. This crate mostly exists to make rustc smaller, so we might put more ‘stuff’ here in the future. It does not have a dependency on LLVM.
- The name of rustc’s own place to organize libraries.
- Requirements for a
StableHashingContextto be used in this crate. This is a hack to allow using the
HashStable_Genericderive macro instead of implementing everything in
- The name of the directory rustc expects libraries to be located.
- Returns a
rustlibpath for this particular target, relative to the provided sysroot.