mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-22 11:01:10 +00:00
Build with -Os under Linux/Mac
This reduces the size of the generated executable by 20%
This commit is contained in:
parent
78c14868c6
commit
f49c147c4f
1 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,11 @@ include_directories(external/win32cpp/include)
|
|||
# so that the executable can function standalone
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "/MT /O2 /Ob2 /D NDEBUG")
|
||||
set(CMAKE_C_FLAGS_RELEASE "/MT /O2 /Ob2 /D NDEBUG")
|
||||
|
||||
else()
|
||||
# optimize for reduced code size
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-Os")
|
||||
set(CMAKE_C_FLAGS_RELEASE "-Os")
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
|
|
Loading…
Reference in a new issue