mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-23 03:15:39 -04:00
chore: default to minimal sfxstub
This is sometimes significantly smaller and only marginally slower than the non-minimal version.
This commit is contained in:
parent
5bf9bd16c6
commit
2ca4a4acab
@ -1155,11 +1155,11 @@ if(STATIC_BUILD_DO_NOT_USE OR WIN32)
|
|||||||
COMMAND ${UPX_EXE} -9 --best -o ${UNIVERSAL_OUT} $<TARGET_FILE:${tgt}>
|
COMMAND ${UPX_EXE} -9 --best -o ${UNIVERSAL_OUT} $<TARGET_FILE:${tgt}>
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
)
|
)
|
||||||
elseif(TARGET sfxstub_lz4 OR TARGET sfxstub_zstd)
|
elseif(TARGET sfxstub_lz4 OR TARGET sfxstub_zstd_minimal)
|
||||||
# Fallback if UPX is not found or doesn't support the target architecture.
|
# Fallback if UPX is not found or doesn't support the target architecture.
|
||||||
# Prefer lz4 if available (as it is faster), otherwise use zstd.
|
# Prefer lz4 if available (as it is faster), otherwise use zstd.
|
||||||
if(TARGET sfxstub_zstd)
|
if(TARGET sfxstub_zstd_minimal)
|
||||||
set(_sfx_stub_target sfxstub_zstd)
|
set(_sfx_stub_target sfxstub_zstd_minimal)
|
||||||
# Sweet spot between compression ratio and decompression speed.
|
# Sweet spot between compression ratio and decompression speed.
|
||||||
# set(_sfx_options "--level=16")
|
# set(_sfx_options "--level=16")
|
||||||
# We'll use the default (`--level=19`, i.e. maximum compression)
|
# We'll use the default (`--level=19`, i.e. maximum compression)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user