Skip to content

Commit 2531d64

Browse files
pwhelanedsiper
authored andcommitted
cmake: explicitly disable FLB_UNICODE_ENCODER when FLB_USE_SIMDUTF is disabled.
Signed-off-by: Phillip Adair Stewart Whelan <[email protected]>
1 parent 3254b9a commit 2531d64

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,14 @@ if(FLB_SMALL)
430430
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Os -g0 ${strip_flag} -fno-stack-protector -fomit-frame-pointer -DNDEBUG -U_FORTIFY_SOURCE")
431431
endif()
432432

433+
# simdutf
434+
if(FLB_UNICODE_ENCODER)
435+
if (NOT FLB_USE_SIMDUTF)
436+
message(STATUS "FLB_USE_SIMDUTF is disabled. Disabling FLB_UNICODE_ENCODER support.")
437+
set(FLB_UNICODE_ENCODER OFF)
438+
endif()
439+
endif()
440+
433441
if(FLB_COVERAGE)
434442
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 --coverage -fprofile-arcs -ftest-coverage")
435443
if (FLB_UNICODE_ENCODER)

0 commit comments

Comments
 (0)