提交 421f0408 编写于 作者: J Jonathan Calmels

Build the debug target with ASAN

上级 a0644eac
......@@ -204,7 +204,8 @@ $(BIN_NAME): $(BIN_OBJS)
all: CPPFLAGS += -DNDEBUG
all: shared static tools
debug: CFLAGS += -pedantic -fsanitize=undefined -fno-omit-frame-pointer -fno-common
# Run with ASAN_OPTIONS="protect_shadow_gap=0" to avoid CUDA OOM errors
debug: CFLAGS += -pedantic -fsanitize=undefined -fno-omit-frame-pointer -fno-common -fsanitize=address
debug: LDLIBS += -lubsan
debug: STRIP := @echo skipping: strip
debug: shared static tools
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册