about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-09-11 18:10:44 +0000
committerbors <bors@rust-lang.org>2020-09-11 18:10:44 +0000
commit141bb23be863f8bfe25ccac102c6e7b96b61d417 (patch)
tree151e50ec61a43beaff5a9ccf2e005c25f10acf7c /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentd778203da2157f47af6d1f7ba5f44eb933ee2df1 (diff)
parent78125ec6b393441e628f9b04b84d6d125225fe30 (diff)
downloadrust-141bb23be863f8bfe25ccac102c6e7b96b61d417.tar.gz
rust-141bb23be863f8bfe25ccac102c6e7b96b61d417.zip
Auto merge of #76415 - Mark-Simulacrum:bootstrap-cross-compilation, r=alexcrichton
rustbuild: avoid trying to inversely cross-compile for build triple from host triples

This changes rustbuild's cross compilation logic to better match what users expect,
particularly, avoiding trying to inverse cross-compile for the build triple from host triples.
That is, if build=A, host=B, target=B, we do not want to try and compile for A from B.
Indeed, the only "known to run" triple when cross-compiling is the build triple A.
When testing for a particular target we need to be able to run binaries compiled for
that target though.

The last commit also modifies the default set of host/target triples to avoid producing
needless artifacts for the build triple:

The new behavior is to respect --host and --target when passed as the *only*
configured triples (no triples are implicitly added). The default for --host is
the build triple, and the default for --target is the host triple(s), either
configured or the default build triple.

Fixes #76333

r? `@alexcrichton` if possible, otherwise we'll need to hunt down a reviewer
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions