Files
2025-12-09 20:50:10 +01:00

27 lines
809 B
TOML

# Cross-compilation configuration for the 'cross' tool
# Build configuration - ensure build scripts run in container
[build]
# Run build scripts in the cross container to avoid GLIBC mismatches
default-target = "x86_64-pc-windows-gnu"
# Windows GNU target (MinGW) - fully supported
[target.x86_64-pc-windows-gnu]
# Use edge image with newer GLIBC to avoid build script issues
image = "ghcr.io/cross-rs/x86_64-pc-windows-gnu:edge"
# Ensure build scripts run in the container
pre-build = [
"dpkg --add-architecture i386",
]
# Build environment configuration
[build.env]
passthrough = [
"CARGO_BUILD_TARGET",
]
# Note: MSVC target is not supported by cross from Linux
# MSVC requires proprietary Microsoft tools that only run on Windows
# Use the GNU target for Windows cross-compilation from Linux