mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-23 14:45:19 +00:00
btrfs-progs: build: add UBSAN to debugging features
usage: make D=ubsan Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
a5bd848719
commit
9cc6e92972
@ -18,6 +18,7 @@
|
||||
# abort - call abort() on first error (dumps core)
|
||||
# all - shortcut for all of the above
|
||||
# asan - enable address sanitizer compiler feature
|
||||
# ubsan - undefined behaviour sanitizer compiler feature
|
||||
# W=123 build with warnings (default: off)
|
||||
# DEBUG_CFLAGS additional compiler flags for debugging build
|
||||
# EXTRA_CFLAGS additional compiler flags
|
||||
@ -150,6 +151,10 @@ ifneq (,$(findstring asan,$(D)))
|
||||
DEBUG_CFLAGS_INTERNAL += -fsanitize=address
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring ubsan,$(D)))
|
||||
DEBUG_CFLAGS_INTERNAL += -fsanitize=undefined
|
||||
endif
|
||||
|
||||
MAKEOPTS = --no-print-directory Q=$(Q)
|
||||
|
||||
# build all by default
|
||||
|
Loading…
Reference in New Issue
Block a user