aboutsummaryrefslogtreecommitdiffhomepage
path: root/makefile
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2016-08-31 11:34:22 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:13 -0400
commit8d8134c7f69ef0c3e680699b19320165c791d75b (patch)
treed67d1048ba864e5dc62d724c544ea0c3c491e0d1 /makefile
parentbiblio (fixes) (diff)
0.6.6 resolves dmd frame pointer access issue (ldc was ok)
* output struct hub nests output structs such as html, resolves issue with dmd frame pointer access
Diffstat (limited to 'makefile')
-rw-r--r--makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/makefile b/makefile
index 1316889..f34bb0b 100644
--- a/makefile
+++ b/makefile
@@ -1,10 +1,10 @@
DMD=dmd
DMD_FLAGS=-de -w -J./views -I./src/sdp -linker=ld.gold
-DMD_FLAGS_RELEASE=-O -release
+DMD_FLAGS_RELEASE=-O -inline -release
DMD_FLAG_BINOF=-of
LDC=ldc2
LDC_FLAGS=-w -J=views -I=src/sdp -linker=ld.gold
-LDC_FLAGS_RELEASE=-O4 -release
+LDC_FLAGS_RELEASE=-O4 -inline -release
LDC_FLAG_BINOF=-of=
GDC=gdc
GDC_FLAGS=
@@ -65,9 +65,9 @@ debug_dub: $(PRG_SRCDIR)/$(PRG_SRC)
# dmd
dub_dmd_release: expunge skel tangle
$(DUB) $(DUB_FLAGS)dmd --config=sdp-release
-dub_dmd_stamp: tangle
+dub_dmd_release_stamp: clean_src skel tangle
$(DUB) $(DUB_FLAGS)dmd --config=sdp-dmd
-dub_dmd_release_test: tangle
+dub_dmd_test_release: tangle
$(DUB) $(DUB_FLAGS)dmd --config=sdp-dmd
dub_dmd_debug: tangle
$(DUB) $(DUB_FLAGS)dmd --config=sdp-debug-dmd
@@ -80,9 +80,9 @@ dub_dmd_debug_src:
# ldc2
dub_ldc_release: expunge skel tangle
$(DUB) $(DUB_FLAGS)ldc2 --config=sdp-release
-dub_ldc_stamp: tangle
+dub_ldc_release_stamp: clean_src skel tangle
$(DUB) $(DUB_FLAGS)ldc2 --config=sdp-ldc
-dub_ldc_release_test: tangle
+dub_ldc_test_release: tangle
$(DUB) $(DUB_FLAGS)ldc2 --config=sdp-ldc
dub_ldc_debug: tangle
$(DUB) $(DUB_FLAGS)ldc2 --config=sdp-debug-ldc
@@ -151,9 +151,13 @@ skel:
init: skel
-clean:
+clean_bin:
rm $(PRG_BINDIR)/*
+clean_src:
+ rm -f $(PRG_SRCDIR)/*; \
+ rm -rf $(PRG_SRCDIR)/$(PRG_NAME); \
+
expunge:
rm -f $(PRG_SRCDIR)/*; \
rm -rf $(PRG_SRCDIR)/$(PRG_NAME); \
@@ -203,5 +207,5 @@ tangle_maker:
gitsnapshot: distclean tangle
git commit -a
.PHONY : all build rebuild debug release \
- clean distclean init \
+ distclean init \
tangle gitsnapshot