Showing with 6 additions and 0 deletions.
  1. +3 −0 src/posix.mak
  2. +3 −0 src/win32.mak
3 changes: 3 additions & 0 deletions src/posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ endif
ifdef ENABLE_UNITTEST
DFLAGS += -unittest -cov
endif
ifdef ENABLE_PROFILE
DFLAGS += -profile
endif

# Uniqe extra flags if necessary
DMD_FLAGS := -I$(ROOT) -Wuninitialized
Expand Down
3 changes: 3 additions & 0 deletions src/win32.mak
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ debdmd:
reldmd:
$(DMDMAKE) "OPT=-o" "DEBUG=" "DDEBUG=" "DOPT=-O -release -inline" "LFLAGS=-L/delexe/la" $(TARGETEXE)

profile:
$(DMDMAKE) "OPT=-o" "DEBUG=" "DDEBUG=" "DOPT=-O -release -profile" "LFLAGS=-L/delexe/la" $(TARGETEXE)

trace:
$(DMDMAKE) "OPT=-o" "DEBUG=-gt -Nc" "DDEBUG=-debug -g -unittest" "DOPT=" "LFLAGS=-L/ma/co/delexe/la" $(TARGETEXE)

Expand Down