mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
cmake: Map MinSizeRel to ReleaseSmall.
This commit is contained in:
parent
19888f759f
commit
f2363623e1
@ -943,6 +943,10 @@ set(ZIG_RELEASE_SAFE OFF CACHE BOOL "Build Zig as ReleaseSafe (with debug assert
|
|||||||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
||||||
list(APPEND ZIG_BUILD_ARGS -Doptimize=Debug)
|
list(APPEND ZIG_BUILD_ARGS -Doptimize=Debug)
|
||||||
else()
|
else()
|
||||||
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel")
|
||||||
|
list(APPEND ZIG_BUILD_ARGS -Doptimize=ReleaseSmall)
|
||||||
|
else()
|
||||||
|
# Release and RelWithDebInfo
|
||||||
if(ZIG_RELEASE_SAFE)
|
if(ZIG_RELEASE_SAFE)
|
||||||
list(APPEND ZIG_BUILD_ARGS -Doptimize=ReleaseSafe)
|
list(APPEND ZIG_BUILD_ARGS -Doptimize=ReleaseSafe)
|
||||||
else()
|
else()
|
||||||
@ -952,6 +956,7 @@ else()
|
|||||||
list(APPEND ZIG_BUILD_ARGS -Dstrip)
|
list(APPEND ZIG_BUILD_ARGS -Dstrip)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ZIG_STATIC AND NOT MSVC)
|
if(ZIG_STATIC AND NOT MSVC)
|
||||||
list(APPEND ZIG_BUILD_ARGS -Duse-zig-libcxx)
|
list(APPEND ZIG_BUILD_ARGS -Duse-zig-libcxx)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user