Skip to content

Commit 604f6f1

Browse files
committed
build: update Windows architecture check for ZeroBus FFI
Signed-off-by: mats <mats.kazuki@gmail.com>
1 parent dfd4295 commit 604f6f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmake/zerobus-ffi.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
4848
return()
4949
endif()
5050
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
51-
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64)$")
51+
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
5252
set(_ZEROBUS_PLATFORM "windows-x86-64")
5353
else()
5454
message(STATUS
55-
"ZeroBus FFI: unsupported Windows architecture '${CMAKE_SYSTEM_PROCESSOR}', "
55+
"ZeroBus FFI: no prebuilt library for 32-bit Windows, "
5656
"disabling out_zerobus. "
5757
"To build manually, set -DZEROBUS_LIB_DIR=/path/to/lib.")
5858
FLB_OPTION(FLB_OUT_ZEROBUS OFF)

0 commit comments

Comments
 (0)