mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
CmakeLists.txt updated
This commit is contained in:
parent
f216f616a0
commit
349d226c19
1 changed files with 4 additions and 4 deletions
|
|
@ -16,16 +16,16 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|||
# i want die
|
||||
if(DEBUG)
|
||||
if (MSVC)
|
||||
add_compile_options(/W4 /dynamicdeopt /Od /fsanitize /GS /guard /validate-charset)
|
||||
add_compile_options(/EHr /fsanitize /validate-charset /DEBUG /RTCu /RTCs /RTCc /guard:cf /GS)
|
||||
else()
|
||||
add_compile_options(-g3 -O0 -fno-omit-frame-pointer -ggdb -Wall)
|
||||
add_compile_options(-g3 -O0 -fno-omit-frame-pointer -ggdb -Wall -fanalyzer -fcheck-new -gbtf -ggnu-pubnames -fexceptions)
|
||||
endif()
|
||||
else()
|
||||
# Optimization stuff
|
||||
if (MSVC)
|
||||
add_compile_options(/O2 /fp:fast /GA /GL /Gw Qpar /RTCu)
|
||||
add_compile_options(/O2 /fp:fast /GL /GF /GA)
|
||||
else()
|
||||
add_compile_options(-O2 -ffast-math -fdevirtualize-speculatively -fspeculatively-call-stored-functions -fipa-pta -fdelete-null-pointer-checks)
|
||||
add_compile_options(-O3 -ffast-math -flto)
|
||||
endif()
|
||||
endif()
|
||||
## Setup main source ##
|
||||
|
|
|
|||
Loading…
Reference in a new issue