mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-01 06:37:22 +00:00
build: strip userspace/falco/falco in release when building with musl
optimizations Co-Authored-By: Leonardo Grasso <me@leonardograsso.com> Signed-off-by: Lorenzo Fontana <fontanalorenz@gmail.com>
This commit is contained in:
@@ -141,6 +141,15 @@ add_custom_command(
|
|||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
COMMENT "Comparing engine fields checksum in falco_engine.h to actual fields")
|
COMMENT "Comparing engine fields checksum in falco_engine.h to actual fields")
|
||||||
|
|
||||||
|
# strip the Falco binary when releasing using musl
|
||||||
|
if(MUSL_OPTIMIZED_BUILD AND CMAKE_BUILD_TYPE STREQUAL "release")
|
||||||
|
add_custom_command(
|
||||||
|
TARGET falco
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND ${CMAKE_STRIP} --strip-unneeded falco
|
||||||
|
COMMENT "Strip the Falco binary when releasing the musl build")
|
||||||
|
endif()
|
||||||
|
|
||||||
# add_custom_target(verify_engine_fields DEPENDS verify_engine_fields.sh falco_engine.h)
|
# add_custom_target(verify_engine_fields DEPENDS verify_engine_fields.sh falco_engine.h)
|
||||||
|
|
||||||
# add_dependencies(verify_engine_fields falco)
|
# add_dependencies(verify_engine_fields falco)
|
||||||
|
Reference in New Issue
Block a user