We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d511c1e commit 6e5e324Copy full SHA for 6e5e324
Makefile
@@ -136,6 +136,12 @@ ifeq ("$(CC_IS_EMCC)", "1")
136
CFLAGS += -mtail-call
137
endif
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
+
145
$(OUT)/emulate.o: CFLAGS += -foptimize-sibling-calls -fomit-frame-pointer -fno-stack-check -fno-stack-protector
146
147
# Clear the .DEFAULT_GOAL special variable, so that the following turns
0 commit comments