Keep debug symbols for debug

This commit is contained in:
LoveSy 2021-03-29 15:08:55 +08:00 committed by Wang Han
parent f551ed8724
commit 084ec536e6
1 changed files with 2 additions and 1 deletions

View File

@ -32,4 +32,5 @@ find_library(log-lib log)
target_link_libraries(lspd yahfa riru::riru android dobby dex_builder libcxx ${log-lib})
add_custom_command(TARGET lspd POST_BUILD
COMMAND ${CMAKE_STRIP} --remove-section=.preinit_array "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/lspd")
COMMAND ${CMAKE_STRIP} --remove-section=.preinit_array --remove-section=.comment
-g "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/lspd")