Skip to content

Commit

Permalink
remove .deps file generation
Browse files Browse the repository at this point in the history
- for development, people can use the much faster std/algorithm.test targets
- for batch unittest recompiling isn't of much interest as all the
  testers just start from a clean slate anyhow
- furthermore the .deps generation is broken anyhow, see Issue 7016
  • Loading branch information
MartinNowak committed May 7, 2017
1 parent f696582 commit 29273f2
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions posix.mak
Expand Up @@ -275,10 +275,6 @@ unittest-%:
$(MAKE) -f $(MAKEFILE) unittest OS=$(OS) MODEL=$(MODEL) DMD=$(DMD) BUILD=$*
endif

depend: $(addprefix $(ROOT)/unittest/,$(addsuffix .deps,$(D_MODULES)))

-include $(addprefix $(ROOT)/unittest/,$(addsuffix .deps,$(D_MODULES)))

################################################################################
# Patterns begin here
################################################################################
Expand Down Expand Up @@ -323,13 +319,11 @@ $(addprefix $(ROOT)/unittest/,$(DISABLED_TESTS)) :
@echo Testing $@ - disabled

UT_D_OBJS:=$(addprefix $(ROOT)/unittest/,$(addsuffix .o,$(D_MODULES)))
# need to recompile all unittest objects whenever sth. changes
$(UT_D_OBJS): $(ALL_D_FILES)
$(UT_D_OBJS): $(ROOT)/unittest/%.o: %.d
@mkdir -p $(dir $@)
$(DMD) $(DFLAGS) -unittest -c -of$@ -deps=$(@:.o=.deps.tmp) $<
@echo $@: `sed 's|.*(\(.*\)).*|\1|' $(@:.o=.deps.tmp) | sort | uniq` \
>$(@:.o=.deps)
@rm $(@:.o=.deps.tmp)
# $(DMD) $(DFLAGS) -unittest -c -of$@ $*.d
$(DMD) $(DFLAGS) -unittest -c -of$@ $<

ifneq (1,$(SHARED))

Expand Down

0 comments on commit 29273f2

Please sign in to comment.