File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 69
69
make ENABLE_EXT_A=0 ENABLE_JIT=1 clean check
70
70
make ENABLE_EXT_F=0 ENABLE_JIT=1 clean check
71
71
make ENABLE_EXT_C=0 ENABLE_JIT=1 clean check
72
+ - name : undefined behavior test
73
+ run : |
74
+ make ENABLE_UBSAN=1 clean check
75
+ make ENABLE_JIT=1 ENABLE_UBSAN=1 clean check
72
76
73
77
host-arm64 :
74
78
needs : [detect-code-related-file-changes]
Original file line number Diff line number Diff line change @@ -136,6 +136,12 @@ ifeq ("$(CC_IS_EMCC)", "1")
136
136
CFLAGS += -mtail-call
137
137
endif
138
138
139
+ ENABLE_UBSAN ?= 0
140
+ ifeq ("$(ENABLE_UBSAN ) ", "1")
141
+ CFLAGS += -fsanitize=undefined -fno-sanitize=alignment -fno-sanitize-recover=all
142
+ LDFLAGS += -fsanitize=undefined -fno-sanitize=alignment -fno-sanitize-recover=all
143
+ endif
144
+
139
145
$(OUT ) /emulate.o : CFLAGS += -foptimize-sibling-calls -fomit-frame-pointer -fno-stack-check -fno-stack-protector
140
146
141
147
# Clear the .DEFAULT_GOAL special variable, so that the following turns
You can’t perform that action at this time.
0 commit comments