Skip to content

Commit 86bcc27

Browse files
committed
Fix compile errors with ENABLE_USDT=Off
Signed-off-by: Brenden Blanco <[email protected]>
1 parent d2e5dd5 commit 86bcc27

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ set(EXAMPLE_PROGRAMS hello_world.py)
22
install(PROGRAMS ${EXAMPLE_PROGRAMS} DESTINATION share/bcc/examples)
33

44
if(ENABLE_CLANG_JIT)
5+
if(ENABLE_USDT)
56
add_subdirectory(cpp)
7+
endif(ENABLE_USDT)
68
add_subdirectory(lua)
79
add_subdirectory(networking)
810
add_subdirectory(tracing)

tests/cc/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ target_link_libraries(test_static bcc-static)
99

1010
add_test(NAME c_test_static COMMAND ${TEST_WRAPPER} c_test_static sudo ${CMAKE_CURRENT_BINARY_DIR}/test_static)
1111

12+
if(ENABLE_USDT)
1213
add_executable(test_libbcc
1314
test_libbcc.cc
1415
test_c_api.cc
@@ -25,3 +26,4 @@ find_path(SDT_HEADER NAMES "sys/sdt.h")
2526
if (SDT_HEADER)
2627
target_compile_definitions(test_libbcc PRIVATE HAVE_SDT_HEADER=1)
2728
endif()
29+
endif(ENABLE_USDT)

0 commit comments

Comments
 (0)