# Windows cross-link fix for the D1 release matrix (cargo-zigbuild). # # Rust's std links `-lsynchronization` on Windows (WaitOnAddress-based thread # parking). Rust normally satisfies this from the `self-contained` mingw libs # of its `rust-mingw` component — which rust-overlay does NOT ship — and Zig's # bundled mingw (used by `cargo zigbuild`) doesn't provide `libsynchronization.a` # either. The actual symbols are *forwarded by kernel32* (already linked), so an # empty stub import lib is enough to satisfy the linker. See `ci/winstub/`. # # These sections apply ONLY when building for the Windows targets, so host # builds (the gate's `cargo test`/`clippy`) and the Linux release targets are # unaffected. [target.x86_64-pc-windows-gnu] rustflags = ["-L", "native=ci/winstub"] [target.aarch64-pc-windows-gnullvm] rustflags = ["-L", "native=ci/winstub"]