Skip to content

Commit 5ff6eab

Browse files
authored
build: add ZeroBus output plugin build configuration (#1)
* build: disable out_zerobus on Windows ARM64 The previous pointer-size only gate falsely selected the windows-x86-64 prebuilt library when cross-compiling for Windows ARM64, causing the ARM64 package job to fail at link time. Reject ARM/ARM64 by processor name first, and keep the pointer-size check to pick the x86-64 prebuilt on 64-bit x86 and disable the plugin on 32-bit Windows. Signed-off-by: Claude <noreply@anthropic.com> * build: align ZeroBus Windows ARM regex with Linux branch The ARM rejection regex included lowercase spellings and bare ARM/arm tokens that Windows never reports for CMAKE_SYSTEM_PROCESSOR. Use the same alternation as the sibling Linux branch and quote the processor value in the status message to match the existing style. Signed-off-by: mats mats.kazuki@gmail.com
1 parent 604f6f1 commit 5ff6eab

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

cmake/zerobus-ffi.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
4848
return()
4949
endif()
5050
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
51-
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
51+
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|ARM64|AARCH64)$")
52+
message(STATUS
53+
"ZeroBus FFI: no prebuilt library for Windows '${CMAKE_SYSTEM_PROCESSOR}', "
54+
"disabling out_zerobus. "
55+
"To build manually, set -DZEROBUS_LIB_DIR=/path/to/lib.")
56+
FLB_OPTION(FLB_OUT_ZEROBUS OFF)
57+
return()
58+
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
5259
set(_ZEROBUS_PLATFORM "windows-x86-64")
5360
else()
5461
message(STATUS

0 commit comments

Comments
 (0)