From 8cce3380f5dc6e0c5719ee617bf5e7a6356038ae Mon Sep 17 00:00:00 2001 From: doyle Date: Mon, 28 Aug 2023 22:19:35 +1000 Subject: [PATCH] build: Use script directory for build folder in Windows --- build.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.bat b/build.bat index d4d0588..27e45e8 100644 --- a/build.bat +++ b/build.bat @@ -2,7 +2,7 @@ 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 +if not exist %script_dir%\Build mkdir %script_dir%\Build +pushd %script_dir%\Build +cl %script_dir%\asan_example.cpp -Zi -fsanitize=address -nologo -link || exit /b 1 popd