This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 420
/
Copy pathwin64.mak
58 lines (47 loc) · 1.56 KB
/
win64.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# built from the druntime top-level folder
# to be overwritten by caller
DMD=dmd
MODEL=64
DRUNTIMELIB=druntime64.lib
SRC_GC = src/core/internal/gc/impl/conservative/gc.d
SRC = $(SRC_GC) src/rt/lifetime.d src/object.d
_DFLAGS = -m$(MODEL) -g -conf= -Isrc -defaultlib=$(DRUNTIMELIB)
UDFLAGS = $(_DFLAGS) -unittest -version=CoreUnittest
RM = del
test: sentinel printf memstomp invariant logging precise precisegc recoverfree nocollect
sentinel:
$(DMD) -debug=SENTINEL $(UDFLAGS) -main -of$@.exe $(SRC)
.\$@.exe
$(RM) $@.exe $@.obj $@.ilk $@.pdb
printf:
$(DMD) -debug=PRINTF -debug=PRINTF_TO_FILE -debug=COLLECT_PRINTF $(UDFLAGS) -main -of$@.exe $(SRC_GC)
.\$@.exe
$(RM) $@.exe $@.obj $@.ilk $@.pdb gcx.log
memstomp:
$(DMD) -debug=MEMSTOMP $(UDFLAGS) -main -of$@.exe $(SRC)
.\$@.exe
$(RM) $@.exe $@.obj $@.ilk $@.pdb
invariant:
$(DMD) -debug -debug=INVARIANT -debug=PTRCHECK -debug=PTRCHECK2 $(UDFLAGS) -main -of$@.exe $(SRC)
.\$@.exe
$(RM) $@.exe $@.obj $@.ilk $@.pdb
logging:
$(DMD) -debug=LOGGING $(UDFLAGS) -of$@.exe -main $(SRC)
.\$@.exe
$(RM) $@.exe $@.obj $@.ilk $@.pdb
precise:
$(DMD) -debug -debug=INVARIANT -debug=MEMSTOMP $(UDFLAGS) -main -of$@.exe $(SRC)
.\$@.exe --DRT-gcopt=gc:precise
$(RM) $@.exe $@.obj $@.ilk $@.pdb
precisegc:
$(DMD) $(UDFLAGS) -of$@.exe -gx $(SRC) test/gc/precisegc.d
.\$@.exe
$(RM) $@.exe $@.obj $@.ilk $@.pdb
recoverfree:
$(DMD) $(_DFLAGS) -of$@.exe -gx test/gc/recoverfree.d
.\$@.exe
$(RM) $@.exe $@.obj $@.ilk $@.pdb
nocollect:
$(DMD) $(_DFLAGS) -of$@.exe -gx test/gc/nocollect.d
.\$@.exe
$(RM) $@.exe $@.obj $@.ilk $@.pdb