From 90fa5202209bab526938d3978df91eb80bfa90c2 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Tue, 13 Jan 2015 23:47:51 -0800 Subject: [PATCH] LDC build option --- makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index 4650bd7..b4fccf0 100644 --- a/makefile +++ b/makefile @@ -1,10 +1,14 @@ SRC := $(shell find src -name "*.d") $(shell find libdparse/src -name "*.d") -COMPILER := dmd INCLUDE_PATHS := -Ilibdparse/src -FLAGS := -g -w $(INCLUDE_PATHS) +DMD_FLAGS := -g -w $(INCLUDE_PATHS) +LDC_FLAGS := -g -w -oq $(INCLUDE_PATHS) -all: $(SRC) - $(COMPILER) $(FLAGS) $(SRC) -ofbin/dfmt +dmd: $(SRC) + dmd $(DMD_FLAGS) $(SRC) -ofbin/dfmt + +ldc: $(SRC) + ldc2 $(LDC_FLAGS) $(SRC) -ofbin/dfmt + -rm -f *.o test: bin/dfmt cd tests && ./test.sh