We can parse expressions
This commit is contained in:
@@ -1,26 +1,25 @@
|
||||
@echo off
|
||||
@setlocal
|
||||
pushd %~dp0
|
||||
|
||||
set start=%time%
|
||||
|
||||
set exeName=lisp.exe
|
||||
set binDir=bin
|
||||
|
||||
mkdir quickbuild
|
||||
mkdir quickbuild 2>nul
|
||||
pushd quickbuild
|
||||
|
||||
cl^
|
||||
../src/main.c^
|
||||
/Fe%exeName% /W3 /TC^
|
||||
/nologo /EHsc /Z7^
|
||||
/link /incremental /debug:fastlink
|
||||
echo ---------- Compiling ----------
|
||||
call timecmd 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 ----------
|
||||
echo ---------- Running ----------
|
||||
call timecmd %exeName%
|
||||
del %exeName% /S /Q > NUL
|
||||
popd
|
||||
) else (
|
||||
|
||||
Reference in New Issue
Block a user