Repository navigation
Conversation
arckoor
force-pushed
the
infer-cross-compiler
branch
3 times, most recently
from
November 30, 2026 10:57
d3a4b66 to
c0f2fd5
Compare
arckoor
force-pushed
the
infer-cross-compiler
branch
from
November 30, 2026 15:09
c0f2fd5 to
bda73ef
Compare
arckoor
marked this pull request as ready for review
November 30, 2026 15:23
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.
Closes #6142
Does its best for the "default case", i.e. (cross) building with standard gcc / clang for a gnu env.
For
gccit tries the typical<arch>-[unknown]-<sys>-gnu-g++combo, the unknown because it's sometimes there, and sometimes not :D (e.g. for my local dev environment, depending on how I build the compiler I either getaarch64-linux-gnu-g++oraarch64-unknown-linux-gnu-g++). There's a gotcha here, i.e. that in the normal case, the compiler will change from justg++tox86_64-linux-gnu-g++. I couldn't yet think of a nice way to try a normal gcc binary, since the selecting and testing of the compiler happen at two different points currently, and I didn't want to change that much in the code, not yet anyway. I think when you install a native gcc they always alias those to that binary, so it should be fine, but still worth some consideration :pFor clang it tries
-target <arch>-<sys>-gnu, but only if-targetdoesn't appear in the ABI flags yet. This can't do fancy stuff like-target arm64v7a-..., but that shouldn't be automatically possible right now anyway, so still an improvement imo.