cross_conmpile::alternate states it should only be used in test cases
after checking cross_compile::disabled(), which is missing here. these
tests fail despite setting CFG_DISABLE_CROSS_TESTS on i386, since both
the host and the alternate cross target would be i686 in that case.
Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
Gbp-Pq: Topic cargo
Gbp-Pq: Name c-0003-tests-add-missing-cross-disabled-checks.patch
#[cargo_test]
fn custom_build_env_var_rustc_linker_cross_arch_host() {
let target = rustc_host();
+ if cross_compile::disabled() {
+ return;
+ }
let cross_target = cross_compile::alternate();
let p = project()
.file(
#[cargo_test]
fn custom_build_linker_bad_cross_arch_host() {
let target = rustc_host();
+ if cross_compile::disabled() {
+ return;
+ }
let cross_target = cross_compile::alternate();
let p = project()
.file(