mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-08 20:12:56 -04:00
build: use upx -9 for universal binaries
This commit is contained in:
parent
bf1a59c4c8
commit
f85873a7b0
@ -1042,9 +1042,12 @@ if(STATIC_BUILD_DO_NOT_USE OR WIN32)
|
||||
set(UNIVERSAL_PACKED
|
||||
"dwarfs-universal-${PRJ_VERSION_FULL}-${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}${CMAKE_EXECUTABLE_SUFFIX}")
|
||||
|
||||
# upx -9 is a good compromise between compression ratio and speed
|
||||
# also, anything above --best increases the startup time of the compressed
|
||||
# executable significantly
|
||||
add_custom_command(
|
||||
OUTPUT ${UNIVERSAL_PACKED}
|
||||
COMMAND ${UPX_EXE} -o ${UNIVERSAL_PACKED} $<TARGET_FILE:dwarfsuniversal>
|
||||
COMMAND ${UPX_EXE} -9 -o ${UNIVERSAL_PACKED} $<TARGET_FILE:dwarfsuniversal>
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user