Significantly Reduce Linux Release Size (#738)
Added symbol stripping for linux build, drops fs from 120 mb to 20mb
This commit is contained in:
parent
81af130147
commit
fe4f9423e3
|
|
@ -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}")
|
set_target_properties(kyty_emulator PROPERTIES LINK_FLAGS "${KYTY_LD_OPTIONS} -Wl,-Map=${KYTY_EMULATOR_MAP_LINK_PATH}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(LINUX)
|
||||||
|
target_link_options(kyty_emulator PRIVATE
|
||||||
|
$<$<CONFIG:Release>:-Wl,--strip-all>
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
# The emulator writes x86-64 trampolines/PLT stubs into memory and executes them, and
|
# 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
|
# runs guest code under Rosetta. That requires the JIT / unsigned-executable-memory
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue