From 349d226c195a06a557184ef3489564c1f6caf76c Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Wed, 20 May 2026 09:29:08 +0400 Subject: [PATCH] CmakeLists.txt updated --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5af90ca..fa0fdd0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ##