Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Nov 13, 2024
1 parent facfcc3 commit 8b81632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cmake/modules/tbb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ else()
endif()
endif()
set(TBB_LIB "${TBB_LIB_BASEDIR}/${TBB_LIB_PREFIX}${TBB_LIB_BASENAME}${TBB_LIB_SUFFIX}")
set(TBB_MEMPROXY_LIB "${TBB_LIB_BASEDIR}/${TBB_LIB_PREFIX}tbbmalloc_proxy${TBB_LIB_SUFFIX}")

if(NOT TARGET tbb)
message(STATUS "Using bundled tbb in '${TBB_SRC}'")
Expand Down Expand Up @@ -89,7 +90,7 @@ else()
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DEMSCRIPTEN=${TBB_EMSCRIPTEN}
BUILD_BYPRODUCTS ${TBB_LIB}
BUILD_BYPRODUCTS ${TBB_LIB} ${TBB_MEMPROXY_LIB}
INSTALL_COMMAND ""
)
else()
Expand All @@ -110,7 +111,7 @@ else()
-DTBB_OUTPUT_DIR_BASE=lib
-DCMAKE_CXX_FLAGS="${TBB_FLAGS}"
-DCMAKE_POSITION_INDEPENDENT_CODE=${ENABLE_PIC}
BUILD_BYPRODUCTS ${TBB_LIB}
BUILD_BYPRODUCTS ${TBB_LIB} ${TBB_MEMPROXY_LIB}
INSTALL_COMMAND ""
)
else()
Expand Down
2 changes: 1 addition & 1 deletion userspace/libsinsp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ if(NOT EMSCRIPTEN)
target_link_libraries(
sinsp
INTERFACE "${CARES_LIB}"
PRIVATE "${TBB_LIB}"
PRIVATE "${TBB_LIB} ${TBB_MEMPROXY_LIB}"
)
endif()

Expand Down

0 comments on commit 8b81632

Please sign in to comment.