From 2ca4a4acab74770a05e58473e8797ece74bf3eca Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Fri, 12 Sep 2025 11:56:01 +0200 Subject: [PATCH] chore: default to minimal sfxstub This is sometimes significantly smaller and only marginally slower than the non-minimal version. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40a0cca7..32f56e48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1155,11 +1155,11 @@ if(STATIC_BUILD_DO_NOT_USE OR WIN32) COMMAND ${UPX_EXE} -9 --best -o ${UNIVERSAL_OUT} $ 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. # Prefer lz4 if available (as it is faster), otherwise use zstd. - if(TARGET sfxstub_zstd) - set(_sfx_stub_target sfxstub_zstd) + if(TARGET sfxstub_zstd_minimal) + set(_sfx_stub_target sfxstub_zstd_minimal) # Sweet spot between compression ratio and decompression speed. # set(_sfx_options "--level=16") # We'll use the default (`--level=19`, i.e. maximum compression)