about summary refs log tree commit diff stats
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/makefile b/makefile
index e6f30d40..4f9f0f84 100644
--- a/makefile
+++ b/makefile
@@ -16,14 +16,17 @@ tangle/tangle:
 termbox/libtermbox.a:
 	cd termbox && make
 
-.PHONY: autogenerated_lists test valgrind clena
+.PHONY: autogenerated_lists test valgrind clang clena
 
 test: mu
 	./mu test
 
-valgrind: mu
+valgrind: clang
 	valgrind --leak-check=yes -q --error-exitcode=1 ./mu test
 
+clang: makefile mu.cc termbox/libtermbox.a autogenerated_lists
+	clang++ -fsanitize=undefined mu.cc termbox/libtermbox.a -o mu
+
 # auto-generated files; by convention they end in '_list'.
 autogenerated_lists: mu.cc function_list test_list
 
nus <andinus@nand.sh> 2020-08-27 11:59:21 +0530 Update README, add documentation' href='/andinus/leo/commit/README?id=8f5f24d37ed0b5954ef3f90c9ea1021ad51b8617'>8f5f24d ^
fdc444f ^

78778ce ^

ea14e7c ^
1e63070 ^

ea14e7c ^


1e63070 ^

78778ce ^

ea14e7c ^
78778ce ^
8f5f24d ^
4460dd2 ^









8f5f24d ^
ea14e7c ^
78778ce ^
6a3cb14 ^



fdc444f ^
6a3cb14 ^



a263b88 ^



6a3cb14 ^
ea14e7c ^
78778ce ^
6a3cb14 ^
fdc444f ^
6a3cb14 ^


ea14e7c ^
78778ce ^
8f5f24d ^
3368af1 ^
8f5f24d ^

ea14e7c ^
fa370dd ^



















ea14e7c ^
4460dd2 ^













ea14e7c ^
3368af1 ^
8f5f24d ^
3368af1 ^
8f5f24d ^
3368af1 ^


8f5f24d ^
3368af1 ^


8f5f24d ^
3368af1 ^



fdc444f ^



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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162