Skip to content

Add native cross toolchains and MSVC targets - #2

Open
martint wants to merge 1 commit into
masterfrom
codex/native-cross-toolchains
Open

martint wants to merge 1 commit into
masterfrom
codex/native-cross-toolchains

Conversation

@martint

@martint martint commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Rust applications with native dependencies need target headers, libraries and build tools in addition to Rust standard libraries. Add isolated Linux sysroots and Windows MSVC cross-compilation while retaining both macOS targets and powerpc64le Linux support.

  • Configure target C/C++ compilers, assemblers, linkers, pkg-config and CMake discovery without host header/library fallback. Include Linux audio, device, windowing and graphics development libraries.
  • Add cargo-xwin with LLVM 19 and pinned Microsoft SDK/CRT metadata. Document SDK licensing, deployment baselines and external runtime dependencies.
  • Pin the Rust base image, Debian snapshot and macOS SDK. Install target standard libraries for the project's active Rust toolchain, including versions other than the image default.
  • Gate multi-architecture publication with independent Rust, C, C++, assembly, zstd and dependency-discovery smoke tests on AMD64 and ARM64 runners. Consolidate manual and scheduled publication into the same workflow.

Validation: all seven target smoke builds passed from ARM64 and emulated AMD64 containers; alternate Rust 1.96.0 coverage, workflow lint and shell lint passed. Native AMD64 execution remains for CI to verify. Compilation and executable inspection do not establish GUI/GPU runtime compatibility.

Rust projects with native dependencies need target headers, libraries and
build tools as well as Rust standard libraries. Provide isolated Linux
sysroots and target compiler and discovery configuration, and add Windows
MSVC support alongside the existing Linux and macOS targets.

Pin toolchain and SDK inputs, define deployment baselines, and install
standard libraries for the project's active Rust version. Gate
multi-architecture publication with independent Rust, C, C++, assembly
and dependency-discovery smoke tests on both container architectures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant