From 2adabcb93610996fea0177fdda1ce6eb32d3a5ba Mon Sep 17 00:00:00 2001 From: goeiecool9999 <7033575+goeiecool9999@users.noreply.github.com> Date: Thu, 17 Nov 2022 15:31:34 +0100 Subject: [PATCH] Linux: Save 10.7MiB of useless debug info (#475) --- src/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 06f3e31f..69d97b00 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -123,9 +123,12 @@ target_link_libraries(CemuBin PRIVATE ) if(UNIX AND NOT APPLE) - # due to nasm output some linkers will make stack executable. - # cemu does not require this so we explicity disable it. + # due to nasm output some linkers will make stack executable + # cemu does not require this so we explicity disable it target_link_options(CemuBin PRIVATE -z noexecstack) + # some residual debug info from boost/discord-rpc is normally included + # most likely not helpful in debugging problems with cemu code + target_link_options(CemuBin PRIVATE "$<$:-Xlinker;--strip-debug>") endif() if (ENABLE_WXWIDGETS)