endif
# don't use Gold with old DMDs
-ifneq ($(shell ld --version | grep gold),)
+ifeq ($(subst dmd,,$(DC)),)
+ifneq ($(strip $(shell ld --version | grep gold)),)
export LD_ := /usr/bin/ld.single
endif
+endif
.PHONY: all
all: naive
.PRECIOUS: $O/%.c.csv $O/%.a.csv
$O/%.c.csv $O/%.a.csv: $O/%
- $(P_RUN) ./$< $(args)
+ $(P_RUN) D_GC_STATS=1 ./$< $(args)
$P mv gc-collections.csv $O/$*.c.csv
$P mv gc-mallocs.csv $O/$*.a.csv