main
Dominik Madarász 2024-08-24 10:14:06 +02:00
parent e6a3e19c56
commit 9e2260bb77
1 changed files with 2 additions and 8 deletions

View File

@ -945,18 +945,12 @@ if "!v4k!"=="yes" (
set cache=_cache\.!errorlevel!
md _cache 2>nul >nul
rem cache for `make rel` cl:48s->25s, tcc:3.3s->1.8s
if exist !cache!.o copy /y !cache!.o v4k.o 2>nul >nul
if exist !cache!.obj copy /y !cache!.obj v4k.obj 2>nul >nul
if exist !cache!.lib copy /y !cache!.lib v4k.lib 2>nul >nul
if exist !cache!.dll copy /y !cache!.dll v4k.dll 2>nul >nul
if exist !cache!.def copy /y !cache!.def v4k.def 2>nul >nul
if exist !cache!.pdb copy /y !cache!.pdb v4k.pdb 2>nul >nul
if not exist "!cache!" (
!echo! v4k && !cc! engine\v4k.c !addons! -DADDON !addon_includes! !export! !args! || set rc=1
if not "!rc!"=="1" (
if "!dll!"=="dll" copy /y v4k.dll bind\v4k.dll > nul
rem cache for `make rel` cl:48s->25s, tcc:3.3s->1.8s
echo. > !cache!
if exist v4k.o copy /y v4k.o !cache!.o 2>nul >nul
if exist v4k.obj copy /y v4k.obj !cache!.obj 2>nul >nul