From 084ec536e613d7d665a2ef5ece9f8e47d3285d1d Mon Sep 17 00:00:00 2001 From: LoveSy Date: Mon, 29 Mar 2021 15:08:55 +0800 Subject: [PATCH] Keep debug symbols for debug --- core/src/main/cpp/main/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/cpp/main/CMakeLists.txt b/core/src/main/cpp/main/CMakeLists.txt index a9086a6f..f1f2a19e 100644 --- a/core/src/main/cpp/main/CMakeLists.txt +++ b/core/src/main/cpp/main/CMakeLists.txt @@ -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")