Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added benchmark framework and improvements to toTextRange #85

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ else
DFLAGS += -O -release -nofloat
endif

ifeq ($(BENCHMARK),1)
DUNITTESTFLAGS = -unittest -version=StdRunBenchmarks
else
DUNITTESTFLAGS = -unittest
endif

# Set DOTOBJ and DOTEXE
ifeq (,$(findstring win,$(OS)))
DOTOBJ:=.o
Expand Down Expand Up @@ -152,15 +158,15 @@ endif
MAIN = $(ROOT)/emptymain.d

# Stuff in std/
STD_MODULES = $(addprefix std/, algorithm array base64 bigint bitmanip \
compiler complex concurrency container contracts conv cpuid \
cstream ctype date datetime datebase dateparse demangle \
encoding exception file format functional getopt gregorian \
json loader math mathspecial md5 metastrings mmfile numeric \
outbuffer parallelism path perf process random range regex \
regexp signals socket socketstream stdint stdio stdiobase \
stream string syserror system traits typecons typetuple uni \
uri utf variant xml zip zlib)
STD_MODULES = $(addprefix std/, algorithm array base64 benchmark \
bigint bitmanip compiler complex concurrency container \
contracts conv cpuid cstream ctype date datetime datebase \
dateparse demangle encoding exception file format functional \
getopt gregorian json loader math mathspecial md5 metastrings \
mmfile numeric outbuffer parallelism path perf process random \
range regex regexp signals socket socketstream stdint stdio \
stdiobase stream string syserror system traits typecons \
typetuple uni uri utf variant xml zip zlib)

STD_NET_MODULES = $(addprefix std/net/, isemail)

Expand Down Expand Up @@ -259,7 +265,7 @@ endif

$(ROOT)/unittest/%$(DOTEXE) : %.d $(LIB) $(ROOT)/emptymain.d
@echo Testing $@
@$(DMD) $(DFLAGS) -unittest $(LINKOPTS) $(subst /,$(PATHSEP),"-of$@") \
@$(DMD) $(DFLAGS) $(DUNITTESTFLAGS) $(LINKOPTS) $(subst /,$(PATHSEP),"-of$@") \
$(ROOT)/emptymain.d $<
# make the file very old so it builds and runs again if it fails
@touch -t 197001230123 $@
Expand Down
Loading