Skip to content

Commit ef93fbb

Browse files
committed
tests/run-make/print-cfg: add Android target_env case
Android targets must not inherit `target_env="gnu"` from the Linux GNU base. Cover this in the existing print-cfg run-make test so a future target-spec refactor cannot silently re-introduce it.
1 parent a021a77 commit ef93fbb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/run-make/print-cfg/rmake.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ fn main() {
4848
includes: &["unix", "target_abi=\"eabihf\""],
4949
disallow: &["windows"],
5050
});
51+
// Regression test for #90834: Android must not have `target_env="gnu"`.
52+
check(PrintCfg {
53+
target: "i686-linux-android",
54+
includes: &["unix", "target_os=\"android\""],
55+
disallow: &["windows", "target_env=\"gnu\""],
56+
});
5157
}
5258

5359
fn check(PrintCfg { target, includes, disallow }: PrintCfg) {

0 commit comments

Comments
 (0)