build: Compile into build folder

This commit is contained in:
doylet 2023-08-28 13:35:53 +10:00
parent 7d0aa69421
commit 591956471e
3 changed files with 8 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
Build

View File

@ -1,2 +1,8 @@
@echo off
cl main.cpp -Z7 -fsanitize=address -nologo -link || exit /b 1
set script_dir_backslash=%~dp0
set script_dir=%script_dir_backslash:~0,-1%
if not exist Build mkdir Build
pushd Build
cl %script_dir%\asan_example.cpp -Zi -O2 -fsanitize=address -nologo -link || exit /b 1
popd