Enable sanitizer in debug builds
"make build-debug" will build with ASAN and USAN enabled.
This commit is contained in:
parent
fe21d9dfb5
commit
d658586d0d
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -20,7 +20,8 @@ clean:
|
||||||
rm -rf "$(APP_BUILD_DIR)" "$(APP_BUILD_DEBUG_DIR)" "$(DIST)"
|
rm -rf "$(APP_BUILD_DIR)" "$(APP_BUILD_DEBUG_DIR)" "$(DIST)"
|
||||||
|
|
||||||
build-app-debug:
|
build-app-debug:
|
||||||
[ -d "$(APP_BUILD_DEBUG_DIR)" ] || ( mkdir "$(APP_BUILD_DEBUG_DIR)" && meson app "$(APP_BUILD_DEBUG_DIR)" --buildtype debug )
|
[ -d "$(APP_BUILD_DEBUG_DIR)" ] || ( mkdir "$(APP_BUILD_DEBUG_DIR)" && \
|
||||||
|
CFLAGS=-fsanitize=address,undefined meson app "$(APP_BUILD_DEBUG_DIR)" --buildtype debug )
|
||||||
ninja -C "$(APP_BUILD_DEBUG_DIR)"
|
ninja -C "$(APP_BUILD_DEBUG_DIR)"
|
||||||
|
|
||||||
build-server-debug:
|
build-server-debug:
|
||||||
|
|
Loading…
Reference in a new issue