Repository navigation
ci: fix cross compilation toolchains - #14
Merged
Merged
Conversation
Point bindgen at the ARM64 musl sysroot and use LLD for LoongArch GNU links. The linker wrapper also applies to nested trybuild invocations.
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.
The ARM64 musl bindings job fails on
ubuntu-latestbecause bindgen's Clang searches host headers instead of the target musl sysroot. The LoongArch64 GNU nightly job fails because Rust passes--no-rosegment, which the installed GNU linker does not support. The coverage job also fails with Rust 1.100 because twotrybuilddiagnostic snapshots no longer match the compiler output.Pass the cross compiler's sysroot to bindgen for ARM64 musl. For LoongArch64 GNU, install LLD and route the GCC linker driver through a small wrapper so the same linker is used by nested
trybuildinvocations. Pin the coverage job to Rust 1.99.1, which matches the existing snapshots; other stable jobs continue tracking the latest compiler.Validation: both original matrix jobs passed in a master-based control run, and the unchanged coverage suite passed with Rust 1.99.1 in a separate control run. No generated files are committed.
Refs: #12