summaryrefslogtreecommitdiff
path: root/Makefile.libcompat
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2021-08-02 09:48:21 +0100
committerAlex Richardson <arichardson@FreeBSD.org>2021-08-02 14:33:24 +0100
commit7bc797e3f3807660cf98e5b1bd63545cafe820f8 (patch)
treea18a5a861b88b98e04104d5a563dbb4c4807e77a /Makefile.libcompat
parent5f6c8ce2452da2da233e37bf4c2b6fccde8594b1 (diff)
Add build system support for ASAN+UBSAN instrumentation
This adds two new options WITH_ASAN/WITH_UBSAN that can be set to enable instrumentation of all binaries with AddressSanitizer and/or UndefinedBehaviourSanitizer. This current patch is almost sufficient to get a complete buildworld with sanitizer instrumentation but in order to actually build and boot a system it depends on a few more follow-up commits. Reviewed By: brooks, kib, markj Differential Revision: https://reviews.freebsd.org/D31043
Diffstat (limited to 'Makefile.libcompat')
-rw-r--r--Makefile.libcompat1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.libcompat b/Makefile.libcompat
index c400cef6fbe3..c2be63c29e73 100644
--- a/Makefile.libcompat
+++ b/Makefile.libcompat
@@ -104,6 +104,7 @@ build${libcompat}: .PHONY
OBJROOT='$${OBJTOP}/' \
MAKEOBJDIRPREFIX= \
DIRPRFX=${_dir}/ -DNO_LINT -DNO_CPU_CFLAGS \
+ MK_ASAN=no MK_UBSAN=no \
MK_CTF=no MK_RETPOLINE=no MK_WERROR=no \
${_t}
.endfor