diff options
| author | bors <bors@rust-lang.org> | 2021-05-09 22:01:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-05-09 22:01:26 +0000 |
| commit | c55c26cb36a988d5df8b9f4442dc8af93e687a39 (patch) | |
| tree | 05e391c93be122728f668d175f54fc9723f26a91 /compiler/rustc_codegen_llvm/src | |
| parent | ca82264ec7556a6011b9d3f1b2fd4c7cd0bc8ae2 (diff) | |
| parent | f9d390d14ad891c4ce9fe108b86d6756ea5154ee (diff) | |
| download | rust-c55c26cb36a988d5df8b9f4442dc8af93e687a39.tar.gz rust-c55c26cb36a988d5df8b9f4442dc8af93e687a39.zip | |
Auto merge of #83800 - xobs:impl-16351-nightly, r=nagisa
Add default search path to `Target::search()` The function `Target::search()` accepts a target triple and returns a `Target` struct defining the requested target. There is a `// FIXME 16351: add a sane default search path?` comment that indicates it is desirable to include some sort of default. This was raised in https://github.com/rust-lang/rust/issues/16351 which was closed without any resolution. https://github.com/rust-lang/rust/pull/31117 was proposed, however that has platform-specific logic that is unsuitable for systems without `/etc/`. This patch implements the suggestion raised in https://github.com/rust-lang/rust/issues/16351#issuecomment-180878193 where a `target.json` file may be placed in `$(rustc --print sysroot)/lib/rustlib/<target-triple>/target.json`. This allows shipping a toolchain distribution as a single file that gets extracted to the sysroot.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
