mirror of https://gitlab.com/basile.b/dexed.git
dastwork bat script supports the env variables "dc" and "mflags"
This commit is contained in:
parent
1ab1dd3adf
commit
6b4c3c97d0
|
@ -1,3 +1,7 @@
|
||||||
|
:: D compiler and arch
|
||||||
|
if "%dc%"=="" set dc=dmd
|
||||||
|
if "%mflags%"=="" set mflags=-m32
|
||||||
|
|
||||||
::iz sources
|
::iz sources
|
||||||
set iz=
|
set iz=
|
||||||
for /r "../etc/iz/import/" %%F in (*.d) do call set iz=%%iz%% "%%F"
|
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...
|
echo building...
|
||||||
|
|
||||||
::build
|
::build
|
||||||
dmd %dast% %dparse% %iz% %stdxalloc% ^
|
%dc% %dast% %dparse% %iz% %stdxalloc% ^
|
||||||
-O -release -inline -boundscheck=off ^
|
-O -release -inline -boundscheck=off %mflags% ^
|
||||||
-Isrc -I"..\etc\iz\import" -I"..\etc\libdparse\src" ^ -I"..\etc\stdx-allocator\source" ^
|
-Isrc -I"..\etc\iz\import" -I"..\etc\libdparse\src" ^ -I"..\etc\stdx-allocator\source" ^
|
||||||
-of"..\bin\dastworx"
|
-of"..\bin\dastworx"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue