Skip to content

Commit eb468c1

Browse files
committed
build: link simdutf_connector with jemalloc
Signed-off-by: Erik Cederberg <[email protected]>
1 parent 447d540 commit eb468c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

plugins/in_tail/tail_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ static int process_content(struct flb_tail_file *file, size_t *bytes)
472472
else if (ret == FLB_UNICODE_CONVERT_NOP) {
473473
flb_plg_debug(ctx->ins, "nothing to convert encoding '%.*s'", end - data, data);
474474
/* Skip the UTF-8 BOM */
475-
if (file->buf_len >= 3 &&
475+
if (file->buf_len >= 3 &&
476476
data[0] == '\xEF' &&
477477
data[1] == '\xBB' &&
478478
data[2] == '\xBF') {

src/simdutf/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ set(src
77

88
add_library(flb-simdutf-connector-static STATIC ${src})
99
target_link_libraries(flb-simdutf-connector-static simdutf-static)
10+
if(FLB_JEMALLOC)
11+
target_link_libraries(flb-simdutf-connector-static ${JEMALLOC_LIBRARIES})
12+
endif()

0 commit comments

Comments
 (0)