build release without crt by default, build debug with crt

This commit is contained in:
u130b8
2023-09-07 10:31:55 +03:00
parent 6ac03d7a1b
commit 64d69162ab
2 changed files with 5 additions and 3 deletions

4
.gitignore vendored
View File

@@ -57,4 +57,6 @@ dkms.conf
/misc/supermiumman.png
/bin.7z
*.zip
*.res
*.res
release

View File

@@ -12,8 +12,8 @@ if "%1" == "debug" (
set CL=/MT /Od /Zi /RTC1 /Fdprogmgr.pdb /fsanitize=address %DEFS%
set LINK=/DEBUG
) else (
set CL=/GL /O1 /DNDEBUG /GS- %DEFS%
set LINK=/LTCG /OPT:REF /OPT:ICF
set CL=/O1 /DNDEBUG /DPROGMGR_NO_CRT /GS- %DEFS%
set LINK=/NODEFAULTLIB /OPT:REF /OPT:ICF
)
pushd "%DIR_RELEASE%"