Significantly Reduce Linux Release Size (#738)

Added symbol stripping for linux build, drops fs from 120 mb to 20mb
This commit is contained in:
Kody Schram authored and GitHub committed 2026-09-20 21:26:24 +04:00
1 parent 81af130147
commit fe4f9423e3
1 file changed
+6
+6
View File
@@ -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
$<$<CONFIG:Release>:-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