update dparse and add submodule stdx-allocator

This commit is contained in:
Basile Burg 2018-02-11 16:57:41 +01:00
parent 7b01053b89
commit e9613a81a3
5 changed files with 20 additions and 7 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "etc/iz"]
path = etc/iz
url = https://www.github.com/BBasile/iz.git
[submodule "etc/stdx-allocator"]
path = etc/stdx-allocator
url = https://github.com/dlang-community/stdx-allocator.git

View File

@ -6,6 +6,10 @@ for /r "../etc/iz/import/" %%F in (*.d) do call set iz=%%iz%% "%%F"
set dparse=
for /r "../etc/libdparse/src/" %%F in (*.d) do call set dparse=%%dparse%% "%%F"
::stdxalloc sources
set stdxalloc=
for /r "../etc/stdx-allocator/source/" %%F in (*.d) do call set stdxalloc=%%stdxalloc%% "%%F"
::dast sources
set dast=
for /r "src/" %%F in (*.d) do call set dast=%%dast%% "%%F"
@ -13,12 +17,12 @@ for /r "src/" %%F in (*.d) do call set dast=%%dast%% "%%F"
echo building...
::build
dmd %dast% %dparse% %iz% ^
dmd %dast% %dparse% %iz% %stdxalloc% ^
-O -release -inline -boundscheck=off ^
-Isrc -I"..\etc\iz\import" -I"..\etc\libdparse\src" ^
-Isrc -I"..\etc\iz\import" -I"..\etc\libdparse\src" ^ -I"..\etc\stdx-allocator\source" ^
-of"..\bin\dastworx"
::cleanup
del ..\bin\dastworx.obj
echo ...done
echo ...done

View File

@ -8,6 +8,11 @@ cd ../etc/libdparse/src/
dparse=$(find `pwd` -type f -name \*.d)
cd ../../../dastworx
#stdx-alloc sources
cd ../etc/stdx-allocator/source/
stdxalloc=$(find `pwd` -type f -name \*.d)
cd ../../../dastworx
#dast sources
cd src/
dast=$(find `pwd` -type f -name \*.d)
@ -16,12 +21,12 @@ cd ../
echo building...
#build
dmd ${dast[@]} ${dparse[@]} ${iz[@]} \
dmd ${dast[@]} ${dparse[@]} ${iz[@]} ${stdxalloc[@]} \
-O -release -inline -boundscheck=off \
-Isrc -I../etc/iz/import -I../etc/libdparse/src \
-Isrc -I../etc/iz/import -I../etc/libdparse/src -I../etc/stdx-allocator/source \
-of../bin/dastworx
#cleanup
rm ../bin/dastworx.o
echo ...done
echo ...done

@ -1 +1 @@
Subproject commit 7ee734bc5281d0e8d4816f05cfffc7604628330e
Subproject commit f3323ce90a41c24cf874fd257ccbf6cc0b1be285

1
etc/stdx-allocator Submodule

@ -0,0 +1 @@
Subproject commit 7487970b58f4a2c0d495679329a8a2857111f3fd