Reorganize folders and added windows build with MSVC for debugging
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user