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
|
# i want die
|
||||||
if(DEBUG)
|
if(DEBUG)
|
||||||
if (MSVC)
|
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()
|
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()
|
endif()
|
||||||
else()
|
else()
|
||||||
# Optimization stuff
|
# Optimization stuff
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_compile_options(/O2 /fp:fast /GA /GL /Gw Qpar /RTCu)
|
add_compile_options(/O2 /fp:fast /GL /GF /GA)
|
||||||
else()
|
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()
|
||||||
endif()
|
endif()
|
||||||
## Setup main source ##
|
## Setup main source ##
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue