summaryrefslogtreecommitdiffhomepage
path: root/compile.bat
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-07-02 21:51:50 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-07-23 18:51:28 +0100
commit5b8d37094a38aff1b2669056a4011a42450fd9c5 (patch)
tree0e67c30227d4368834df94be42fef645186267c6 /compile.bat
parente3fd5ad05a7d933d401de431ce2d27a99d3b9995 (diff)
Add alias management plus input filtering skeleton
Some of the alias stuff was kind of stolen from earlier figuring-out Bill did. More Bill code is also on the way. :^)
Diffstat (limited to 'compile.bat')
-rw-r--r--compile.bat10
1 files changed, 5 insertions, 5 deletions
diff --git a/compile.bat b/compile.bat
index a96da7a..1ede9f3 100644
--- a/compile.bat
+++ b/compile.bat
@@ -49,6 +49,8 @@ set src=
setlocal EnableDelayedExpansion
for /f "tokens=2" %%f in ('findstr /B /C:":+ " "%~nx0"') do set src=!src! src/%%f
setlocal DisableDelayedExpansion
+:+ ac.c
+:+ alias.c
:+ autojump.c
:+ con_.c
:+ demorec.c
@@ -68,11 +70,9 @@ setlocal DisableDelayedExpansion
:+ rinput.c
:+ sst.c
:+ x86.c
-:: just tack these on, whatever
-if "%dbg%"=="1" (
- set src=%src% src/dbg.c
- set src=%src% src/udis86.c
-)
+:: just tack these on, whatever (repeated condition because of expansion memes)
+if "%dbg%"=="1" set src=%src% src/dbg.c
+if "%dbg%"=="1" set src=%src% src/udis86.c
%HOSTCC% -municode -O2 %warnings% -D_CRT_SECURE_NO_WARNINGS ^
-o .build/codegen.exe src/build/codegen.c src/build/cmeta.c || exit /b