Windows bugs
This commit is contained in:
parent
6e1585b6bd
commit
b6589efff9
10
build.bat
10
build.bat
|
|
@ -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%
|
cargo build --release --bin layers --target %RUST_TARGET%
|
||||||
if %ERRORLEVEL% neq 0 (
|
if %ERRORLEVEL% neq 0 (
|
||||||
echo cargo build failed
|
echo cargo build failed
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue