Skip to content

Commit 2ca4a4a

Browse files
committed
chore: default to minimal sfxstub
This is sometimes significantly smaller and only marginally slower than the non-minimal version.
1 parent 5bf9bd1 commit 2ca4a4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,11 +1155,11 @@ if(STATIC_BUILD_DO_NOT_USE OR WIN32)
11551155
COMMAND ${UPX_EXE} -9 --best -o ${UNIVERSAL_OUT} $<TARGET_FILE:${tgt}>
11561156
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
11571157
)
1158-
elseif(TARGET sfxstub_lz4 OR TARGET sfxstub_zstd)
1158+
elseif(TARGET sfxstub_lz4 OR TARGET sfxstub_zstd_minimal)
11591159
# Fallback if UPX is not found or doesn't support the target architecture.
11601160
# Prefer lz4 if available (as it is faster), otherwise use zstd.
1161-
if(TARGET sfxstub_zstd)
1162-
set(_sfx_stub_target sfxstub_zstd)
1161+
if(TARGET sfxstub_zstd_minimal)
1162+
set(_sfx_stub_target sfxstub_zstd_minimal)
11631163
# Sweet spot between compression ratio and decompression speed.
11641164
# set(_sfx_options "--level=16")
11651165
# We'll use the default (`--level=19`, i.e. maximum compression)

0 commit comments

Comments
 (0)