File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ prefix=/usr/local
48
48
# CONFIG_PROFILE=y
49
49
# use address sanitizer
50
50
# CONFIG_ASAN=y
51
+ # use memory sanitizer
52
+ # CONFIG_MSAN=y
51
53
# include the code for BigInt/BigFloat/BigDecimal and math mode
52
54
CONFIG_BIGNUM =y
53
55
@@ -127,6 +129,10 @@ ifdef CONFIG_ASAN
127
129
CFLAGS+=-fsanitize =address -fno-omit-frame-pointer
128
130
LDFLAGS+=-fsanitize =address -fno-omit-frame-pointer
129
131
endif
132
+ ifdef CONFIG_MSAN
133
+ CFLAGS+=-fsanitize =memory -fno-omit-frame-pointer
134
+ LDFLAGS+=-fsanitize =memory -fno-omit-frame-pointer
135
+ endif
130
136
ifdef CONFIG_WIN32
131
137
LDEXPORT =
132
138
else
@@ -155,15 +161,15 @@ endif
155
161
156
162
# examples
157
163
ifeq ($(CROSS_PREFIX ) ,)
158
- ifdef CONFIG_ASAN
159
- PROGS+ =
160
- else
164
+ ifndef CONFIG_ASAN
165
+ ifndef CONFIG_MSAN
161
166
PROGS+ =examples/hello examples/hello_module examples/test_fib
162
167
ifndef CONFIG_DARWIN
163
168
PROGS+ =examples/fib.so examples/point.so
164
169
endif
165
170
endif
166
171
endif
172
+ endif
167
173
168
174
all : $(OBJDIR ) $(OBJDIR ) /quickjs.check.o $(OBJDIR ) /qjs.check.o $(PROGS )
169
175
You can’t perform that action at this time.
0 commit comments