build: separate Android host and target compilers - #65772
Open
luoqianlin wants to merge 1 commit into
Open
Conversation
luoqianlin
force-pushed
the
android-host-target-compilers
branch
from
September 4, 2026 12:33
d420f3c to
64f6ade
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: luoqianlin <qianlinluo@foxmail.com>
luoqianlin
force-pushed
the
android-host-target-compilers
branch
from
September 4, 2026 12:38
64f6ade to
5eef8a0
Compare
Author
|
The branch has been corrected and force-pushed after the earlier bad-base update. It is now a single commit based on current main and changes only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Android cross-compilation by keeping host and target compilers separate.
The Android configure helper uses the Android compiler for configure.py's
target compiler detection and for GYP target rules, while host-side tools such
as ICU and V8 generators use a native compiler.
This change:
CC_target/CXX_targetvalues authoritative.CC/CXXvalues as target compiler overrides whentoolset-specific values are not set.
gcc/g++(or the platform equivalent) as host defaults whilepreserving explicit
CC_host/CXX_hostoverrides.command concatenation.
NDK r29 with Android API 30 and arm64 is the current validation baseline.
Refs: #65771
Validation:
python3 -m py_compile android_configure.pygit diff --check