Skip to content

Commit 168b9b4

Browse files
committed
build: sp: link to jemalloc if available
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 1ea53fe commit 168b9b4

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

src/CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,6 @@ set(src
4646
)
4747
endif()
4848

49-
include_directories(
50-
.
51-
../lib/
52-
../lib/jsmn
53-
../lib/msgpack-c-0b7cabd/include
54-
../lib/monkey/include/
55-
../lib/luajit-2.0.5/src/
56-
${extra_headers}
57-
)
58-
5949
if(FLB_PARSER)
6050
set(src
6151
${src}

src/stream_processor/parser/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ add_library(flb-sp-parser STATIC
2323
"${CMAKE_CURRENT_BINARY_DIR}/sql_parser.c"
2424
)
2525

26-
#add_executable(test-sp-parser
27-
# ${sources}
28-
# "${CMAKE_CURRENT_BINARY_DIR}/sql_lex.c"
29-
# "${CMAKE_CURRENT_BINARY_DIR}/sql_parser.c"
30-
# )
31-
3226
add_flex_bison_dependency(lexer parser)
3327
add_dependencies(flb-sp-parser libonigmo)
28+
29+
if(FLB_JEMALLOC)
30+
target_link_libraries(flb-sp-parser libjemalloc)
31+
endif()

0 commit comments

Comments
 (0)