Reorganize folders and added windows build with MSVC for debugging

This commit is contained in:
FelixBrendel
2018-09-26 11:32:55 +02:00
parent 8c0a0b0781
commit 5f16d1fbb9
16 changed files with 66 additions and 27 deletions
+31 -5
View File
@@ -1,7 +1,33 @@
@echo off
clang main.c -g -o lisp.exe --std=c99 || exit /b 1
pushd %~dp0
echo.
echo --- Output Start ---
lisp test.lsp
echo --- Output End ---
set exeName=lisp.exe
set binDir=bin
mkdir quickbuild
pushd quickbuild
cl^
../src/main.c^
/Fe%exeName% /W3 /TC^
/nologo /EHsc /Z7^
/link /incremental /debug:fastlink
if %errorlevel% == 0 (
echo.
if not exist ..\%binDir% mkdir ..\%binDir%
move %exeName% ..\%binDir%\ > NUL
pushd ..\%binDir%
echo ---------- Output start ----------
%exeName%
echo ---------- Output end ----------
del %exeName% /S /Q > NUL
popd
) else (
echo.
echo Fucki'n 'ell
)
popd
rd quickbuild /S /Q
popd