Skip to content

tests/run-make/print-cfg: add Android target_env case#155988

Open
Vastargazing wants to merge 1 commit intorust-lang:mainfrom
Vastargazing:tests/android-target-env-print-cfg
Open

tests/run-make/print-cfg: add Android target_env case#155988
Vastargazing wants to merge 1 commit intorust-lang:mainfrom
Vastargazing:tests/android-target-env-print-cfg

Conversation

@Vastargazing
Copy link
Copy Markdown
Contributor

@Vastargazing Vastargazing commented Apr 30, 2026

Regression test for #90834

#77729 + #78929 accidentally gave Android targets target_env="gnu"
through android_base inheriting from linux_gnu_base. #90834 moved it
back to plain linux_base but didn't add a test, so a future target-spec
refactor could bring it back unnoticed. This adds an Android case to
tests/run-make/print-cfg covering exactly that.

r? @petrochenkov

@rustbot rustbot added A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 30, 2026
@rustbot

This comment has been minimized.

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.
@Vastargazing Vastargazing force-pushed the tests/android-target-env-print-cfg branch from 40064e2 to ef93fbb Compare April 30, 2026 07:25
@petrochenkov
Copy link
Copy Markdown
Contributor

@bors r+ rollup

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Apr 30, 2026

📌 Commit ef93fbb has been approved by petrochenkov

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants