Skip to content

Commit

Permalink
Print ebpfdiscovery symbols during build
Browse files Browse the repository at this point in the history
  • Loading branch information
karczex committed Nov 12, 2024
1 parent 61ccdfa commit 3da99f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ebpfdiscoverysrv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ add_executable(${TARGET} ${SOURCES})
target_link_libraries(${TARGET} PRIVATE ebpfdiscovery)
target_link_options(${TARGET} PRIVATE "-static-libgcc" "-static-libstdc++")
target_compile_definitions(${TARGET} PUBLIC PROJECT_VERSION="${PROJECT_VERSION}")

add_custom_command(TARGET ${TARGET} POST_BUILD
COMMAND objdump -p $<TARGET_FILE:${CMAKE_PROJECT_NAME}>
)

0 comments on commit 3da99f1

Please sign in to comment.