Commit 86bcc27d authored by Brenden Blanco's avatar Brenden Blanco

Fix compile errors with ENABLE_USDT=Off

Signed-off-by: default avatarBrenden Blanco <bblanco@gmail.com>
parent d2e5dd57
...@@ -2,7 +2,9 @@ set(EXAMPLE_PROGRAMS hello_world.py) ...@@ -2,7 +2,9 @@ set(EXAMPLE_PROGRAMS hello_world.py)
install(PROGRAMS ${EXAMPLE_PROGRAMS} DESTINATION share/bcc/examples) install(PROGRAMS ${EXAMPLE_PROGRAMS} DESTINATION share/bcc/examples)
if(ENABLE_CLANG_JIT) if(ENABLE_CLANG_JIT)
if(ENABLE_USDT)
add_subdirectory(cpp) add_subdirectory(cpp)
endif(ENABLE_USDT)
add_subdirectory(lua) add_subdirectory(lua)
add_subdirectory(networking) add_subdirectory(networking)
add_subdirectory(tracing) add_subdirectory(tracing)
......
...@@ -9,6 +9,7 @@ target_link_libraries(test_static bcc-static) ...@@ -9,6 +9,7 @@ target_link_libraries(test_static bcc-static)
add_test(NAME c_test_static COMMAND ${TEST_WRAPPER} c_test_static sudo ${CMAKE_CURRENT_BINARY_DIR}/test_static) add_test(NAME c_test_static COMMAND ${TEST_WRAPPER} c_test_static sudo ${CMAKE_CURRENT_BINARY_DIR}/test_static)
if(ENABLE_USDT)
add_executable(test_libbcc add_executable(test_libbcc
test_libbcc.cc test_libbcc.cc
test_c_api.cc test_c_api.cc
...@@ -25,3 +26,4 @@ find_path(SDT_HEADER NAMES "sys/sdt.h") ...@@ -25,3 +26,4 @@ find_path(SDT_HEADER NAMES "sys/sdt.h")
if (SDT_HEADER) if (SDT_HEADER)
target_compile_definitions(test_libbcc PRIVATE HAVE_SDT_HEADER=1) target_compile_definitions(test_libbcc PRIVATE HAVE_SDT_HEADER=1)
endif() endif()
endif(ENABLE_USDT)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment