@@ -6,51 +6,53 @@ DRUNTIMELIB=druntime64.lib
6
6
7
7
SRC_GC = src/gc/impl/conservative/gc.d
8
8
SRC = $(SRC_GC ) src/rt/lifetime.d src/object.d
9
- UDFLAGS = -m$(MODEL ) -g -unittest -version=CoreUnittest -conf= -Isrc -defaultlib=$(DRUNTIMELIB )
9
+ _DFLAGS = -m$(MODEL ) -g -conf= -Isrc -defaultlib=$(DRUNTIMELIB )
10
+ UDFLAGS = $(_DFLAGS ) -unittest -version=CoreUnittest
11
+ RM = del
10
12
11
13
test : sentinel printf memstomp invariant logging precise precisegc recoverfree nocollect
12
14
13
15
sentinel :
14
16
$(DMD ) -debug=SENTINEL $(UDFLAGS ) -main -of$@ .exe $(SRC )
15
17
.\$ @.exe
16
- del $@ .exe $@ .obj $@ .ilk $@ .pdb
18
+ $( RM ) $@ .exe $@ .obj $@ .ilk $@ .pdb
17
19
18
20
printf :
19
21
$(DMD ) -debug=PRINTF -debug=PRINTF_TO_FILE -debug=COLLECT_PRINTF $(UDFLAGS ) -main -of$@ .exe $(SRC_GC )
20
22
.\$ @.exe
21
- del $@ .exe $@ .obj $@ .ilk $@ .pdb gcx.log
23
+ $( RM ) $@ .exe $@ .obj $@ .ilk $@ .pdb gcx.log
22
24
23
25
memstomp :
24
26
$(DMD ) -debug=MEMSTOMP $(UDFLAGS ) -main -of$@ .exe $(SRC )
25
27
.\$ @.exe
26
- del $@ .exe $@ .obj $@ .ilk $@ .pdb
28
+ $( RM ) $@ .exe $@ .obj $@ .ilk $@ .pdb
27
29
28
30
invariant :
29
31
$(DMD ) -debug -debug=INVARIANT -debug=PTRCHECK -debug=PTRCHECK2 $(UDFLAGS ) -main -of$@ .exe $(SRC )
30
32
.\$ @.exe
31
- del $@ .exe $@ .obj $@ .ilk $@ .pdb
33
+ $( RM ) $@ .exe $@ .obj $@ .ilk $@ .pdb
32
34
33
35
logging :
34
36
$(DMD ) -debug=LOGGING $(UDFLAGS ) -of$@ .exe -main $(SRC )
35
37
.\$ @.exe
36
- del $@ .exe $@ .obj $@ .ilk $@ .pdb
38
+ $( RM ) $@ .exe $@ .obj $@ .ilk $@ .pdb
37
39
38
40
precise :
39
41
$(DMD ) -debug -debug=INVARIANT -debug=MEMSTOMP $(UDFLAGS ) -main -of$@ .exe $(SRC )
40
42
.\$ @.exe --DRT-gcopt=gc:precise
41
- del $@ .exe $@ .obj $@ .ilk $@ .pdb
43
+ $( RM ) $@ .exe $@ .obj $@ .ilk $@ .pdb
42
44
43
45
precisegc :
44
46
$(DMD ) $(UDFLAGS ) -of$@ .exe -gx $(SRC ) test/gc/precisegc.d
45
47
.\$ @.exe
46
- del $@ .exe $@ .obj $@ .ilk $@ .pdb
48
+ $( RM ) $@ .exe $@ .obj $@ .ilk $@ .pdb
47
49
48
50
recoverfree :
49
- $(DMD ) $(UDFLAGS ) -of$@ .exe -gx $( SRC ) test/gc/recoverfree.d
51
+ $(DMD ) $(_DFLAGS ) -of$@ .exe -gx test/gc/recoverfree.d
50
52
.\$ @.exe
51
- del $@ .exe $@ .obj $@ .ilk $@ .pdb
53
+ $( RM ) $@ .exe $@ .obj $@ .ilk $@ .pdb
52
54
53
55
nocollect :
54
- $(DMD ) $(UDFLAGS ) -of$@ .exe -gx $( SRC ) test/gc/nocollect.d
56
+ $(DMD ) $(_DFLAGS ) -of$@ .exe -gx test/gc/nocollect.d
55
57
.\$ @.exe
56
- del $@ .exe $@ .obj $@ .ilk $@ .pdb
58
+ $( RM ) $@ .exe $@ .obj $@ .ilk $@ .pdb
0 commit comments