mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-03 09:47:01 -04:00
build: only UPX a binary when using a supported architecture
This commit is contained in:
parent
6300d33598
commit
c3532ab2eb
@ -1043,7 +1043,9 @@ if(STATIC_BUILD_DO_NOT_USE OR WIN32)
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
else()
|
||||
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^(i386|x86_64|AMD64|aarch64)$")
|
||||
find_program(UPX_EXE upx upx.exe PATHS "c:/bin" DOC "ultimate packer for executables")
|
||||
endif()
|
||||
|
||||
if(UPX_EXE)
|
||||
# upx -9 is a good compromise between compression ratio and speed
|
||||
|
Loading…
x
Reference in New Issue
Block a user