Skip to content

Commit

Permalink
simulator: strip binary
Browse files Browse the repository at this point in the history
This reduces the binary size from ~10M to ~1.7M, more suitable to use
in other projects such as in the CI of client libraries etc.
  • Loading branch information
benma committed Jun 3, 2024
1 parent 0766043 commit 5552fb4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/simulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,11 @@ target_link_libraries(simulator PRIVATE
bitbox-simulator
-Wl,--end-group
""
)
)

add_custom_command(
TARGET simulator POST_BUILD
COMMAND ${CMAKE_STRIP} simulator
WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
COMMENT "\nStripping simulator binary"
)

0 comments on commit 5552fb4

Please sign in to comment.