From fe4f9423e3a364515c6fc5af6b7e75666b6ece2e Mon Sep 17 00:00:00 2001 From: Kody Schram <79764769+Kody-Schram@users.noreply.github.com> Date: Sun, 20 Sep 2026 10:26:24 -0700 Subject: [PATCH] Significantly Reduce Linux Release Size (#738) Added symbol stripping for linux build, drops fs from 120 mb to 20mb --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29e717e27..fdb7a2e5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -681,6 +681,12 @@ elseif(WIN32 OR LINUX) set_target_properties(kyty_emulator PROPERTIES LINK_FLAGS "${KYTY_LD_OPTIONS} -Wl,-Map=${KYTY_EMULATOR_MAP_LINK_PATH}") endif() +if(LINUX) + target_link_options(kyty_emulator PRIVATE + $<$:-Wl,--strip-all> + ) +endif() + if(APPLE) # The emulator writes x86-64 trampolines/PLT stubs into memory and executes them, and # runs guest code under Rosetta. That requires the JIT / unsigned-executable-memory