Skip to content

Commit b3c5cda

Browse files
cosmo0920edsiper
authored andcommitted
build: Permit to build WAMR on FreeBSD
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 83e2bf8 commit b3c5cda

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
7878
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -lutil")
7979
endif()
8080

81-
# *BSD is not supported platform for wasm-micro-runtime. Now, we should be disabled for these platforms.
82-
if(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
81+
# *BSD is not supported platform for wasm-micro-runtime except for FreeBSD.
82+
# Now, we should be disabled for these platforms.
83+
if(NOT FLB_SYSTEM_FREEBSD AND ${CMAKE_SYSTEM_NAME} MATCHES "BSD")
8384
message(STATUS "This platform is not supported for WASM feature so disabled.")
8485
set(FLB_WASM OFF)
8586
endif()

0 commit comments

Comments
 (0)