Skip to content

Commit 5552fb4

Browse files
committed
simulator: strip binary
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.
1 parent 0766043 commit 5552fb4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/simulator/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,11 @@ target_link_libraries(simulator PRIVATE
182182
bitbox-simulator
183183
-Wl,--end-group
184184
""
185-
)
185+
)
186+
187+
add_custom_command(
188+
TARGET simulator POST_BUILD
189+
COMMAND ${CMAKE_STRIP} simulator
190+
WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
191+
COMMENT "\nStripping simulator binary"
192+
)

0 commit comments

Comments
 (0)