From bea04c39198f6e9893722374d502ac34522ca383 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Fri, 20 Mar 2015 01:54:15 -0700 Subject: [PATCH] Enable optimizations in non-test builds --- makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 61d731c..be0b032 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,7 @@ SRC := $(shell find src -name "*.d") $(shell find libdparse/src -name "*.d") INCLUDE_PATHS := -Ilibdparse/src -Isrc -DMD_FLAGS := -g -w $(INCLUDE_PATHS) +DMD_FLAGS := -O -inline $(INCLUDE_PATHS) +DMD_TEST_FLAGS := -g -w $(INCLUDE_PATHS) LDC_FLAGS := -g -w -oq $(INCLUDE_PATHS) .PHONY: dmd ldc test @@ -12,7 +13,7 @@ ldc: $(SRC) -rm -f *.o test: - dmd $(DMD_FLAGS) -unittest $(SRC) -ofbin/dfmt + dmd $(DMD_TEST_FLAGS) -unittest $(SRC) -ofbin/dfmt cd tests && ./test.sh bin/dfmt: $(SRC)