Skip to content

Commit 29c4de0

Browse files
build: only compile simdutf if there is CXX support
Commit 3b04755 "build: lib: Bundle simdutf amalgamation v5.5.0", added support for simdutf, and enforces CXX support if FLB_UNICODE_ENCODER is selected. Which is the default case, fix that now. Signed-off-by: Thomas Devoogdt <[email protected]>
1 parent 10a24b1 commit 29c4de0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ option(FLB_COVERAGE "Build with code-coverage" No)
139139
option(FLB_JEMALLOC "Build with Jemalloc support" No)
140140
option(FLB_REGEX "Build with Regex support" Yes)
141141
option(FLB_UTF8_ENCODER "Build with UTF8 encoding support" Yes)
142-
option(FLB_UNICODE_ENCODER "Build with Unicode (UTF-16LE, UTF-16BE) encoding support" Yes)
142+
option(FLB_UNICODE_ENCODER "Build with Unicode (UTF-16LE, UTF-16BE) encoding support" CMAKE_CXX_COMPILER)
143143
option(FLB_PARSER "Build with Parser support" Yes)
144144
option(FLB_TLS "Build with SSL/TLS support" Yes)
145145
option(FLB_BINARY "Build executable binary" Yes)

0 commit comments

Comments
 (0)