Windows bugs

This commit is contained in:
jess 2026-04-22 16:33:41 -07:00
parent 6e1585b6bd
commit b6589efff9
1 changed files with 10 additions and 0 deletions

View File

@ -35,6 +35,16 @@ if %ERRORLEVEL% equ 0 (
)
)
rem nng 1.x (bundled by nng-sys 1.4.0-rc.0) has two type mismatches that become hard
rem errors under clang 16+ (which ships in MSYS2 clangarm64). Downgrade them so the
rem vendored C builds cleanly. Harmless on older clang / gcc too.
set "NNG_RELAX=-Wno-error=incompatible-pointer-types -Wno-error=incompatible-function-pointer-types -Wno-incompatible-pointer-types -Wno-incompatible-function-pointer-types"
if defined CFLAGS (
set "CFLAGS=%CFLAGS% %NNG_RELAX%"
) else (
set "CFLAGS=%NNG_RELAX%"
)
cargo build --release --bin layers --target %RUST_TARGET%
if %ERRORLEVEL% neq 0 (
echo cargo build failed