From 6b4c3c97d0a872dcc4f05c89bbbb6a436fc26c73 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sun, 7 Oct 2018 16:13:27 +0200 Subject: [PATCH] dastwork bat script supports the env variables "dc" and "mflags" --- dastworx/build.bat | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dastworx/build.bat b/dastworx/build.bat index d56d8221..32eff871 100644 --- a/dastworx/build.bat +++ b/dastworx/build.bat @@ -1,3 +1,7 @@ +:: D compiler and arch +if "%dc%"=="" set dc=dmd +if "%mflags%"=="" set mflags=-m32 + ::iz sources set iz= for /r "../etc/iz/import/" %%F in (*.d) do call set iz=%%iz%% "%%F" @@ -17,8 +21,8 @@ for /r "src/" %%F in (*.d) do call set dast=%%dast%% "%%F" echo building... ::build -dmd %dast% %dparse% %iz% %stdxalloc% ^ --O -release -inline -boundscheck=off ^ +%dc% %dast% %dparse% %iz% %stdxalloc% ^ +-O -release -inline -boundscheck=off %mflags% ^ -Isrc -I"..\etc\iz\import" -I"..\etc\libdparse\src" ^ -I"..\etc\stdx-allocator\source" ^ -of"..\bin\dastworx"