Skip to content

Commit 3c6a439

Browse files
author
Hackerpilot
committed
1 parent a5282b4 commit 3c6a439

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

test/makefile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.PHONY: test graphs clean
22

3+
DC?=dmd
34
SRC:=$(shell find ../src/ -name "*.d") $(shell find ../experimental_allocator -name "*.d")
45
FLAGS:=-unittest -main -g -cov -I../src/ -debug -wi
56
FLAGS32:=$(FLAGS) -m32
@@ -13,22 +14,22 @@ all: test test_32 compile_test compile_test_32 external_allocator_test external_
1314
./external_allocator_test_32
1415

1516
test: $(SRC)
16-
dmd $(FLAGS) $(SRC) -oftests
17+
$(DC) $(FLAGS) $(SRC) -oftests
1718
test_32: $(SRC)
18-
dmd $(FLAGS32) $(SRC) -oftests_32
19+
$(DC) $(FLAGS32) $(SRC) -oftests_32
1920

2021
compile_test: compile_test.d $(SRC)
21-
dmd $(FLAGS) compile_test.d $(SRC) -ofcompile_test
22+
$(DC) $(FLAGS) compile_test.d $(SRC) -ofcompile_test
2223
compile_test_32: compile_test.d $(SRC)
23-
dmd $(FLAGS32) compile_test.d $(SRC) -ofcompile_test_32
24+
$(DC) $(FLAGS32) compile_test.d $(SRC) -ofcompile_test_32
2425

2526
external_allocator_test: external_allocator_test.d $(SRC)
26-
dmd $(FLAGS) external_allocator_test.d $(SRC) -ofexternal_allocator_test
27+
$(DC) $(FLAGS) external_allocator_test.d $(SRC) -ofexternal_allocator_test
2728
external_allocator_test_32: external_allocator_test.d $(SRC)
28-
dmd $(FLAGS32) external_allocator_test.d $(SRC) -ofexternal_allocator_test_32
29+
$(DC) $(FLAGS32) external_allocator_test.d $(SRC) -ofexternal_allocator_test_32
2930

3031
looptest: looptest.d
31-
dmd looptest.d -inline -O -release \
32+
$(DC) looptest.d -inline -O -release \
3233
../src/memory/allocators.d \
3334
../src/containers/ttree.d \
3435
../src/containers/internal/node.d \
@@ -49,6 +50,6 @@ clean:
4950
rm -f looptest
5051

5152
graphs: clean
52-
dmd $(FLAGS) $(SRC) -oftests -version=graphviz_debugging
53+
$(DC) $(FLAGS) $(SRC) -oftests -version=graphviz_debugging
5354
-./tests
5455
parallel "dot -Tpng {} > {.}.png" ::: graph*.dot

0 commit comments

Comments
 (0)