aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2022-01-14 00:28:55 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2022-02-08 12:26:03 +0000
commit8c56b338da744b174f31809c4514e06350bf6360 (patch)
tree1334e4ea43ff2a2e83fff170ab266af14e395824
parentcb1bee9bd342b29c44c29662d4d74c4a5273b9d7 (diff)
downloadsrc-8c56b338da7.tar.gz
src-8c56b338da7.zip
riscv64: enable ASAN and UBSAN
Differential review: https://reviews.freebsd.org/D33875 Approved by: dim, imp (cherry picked from commit 9fc131426694387dda365c8624ddc85cb567d727)
-rw-r--r--lib/libclang_rt/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libclang_rt/Makefile b/lib/libclang_rt/Makefile
index c1c72299bdf7..ca0796b0e65d 100644
--- a/lib/libclang_rt/Makefile
+++ b/lib/libclang_rt/Makefile
@@ -30,6 +30,16 @@ SUBDIR+= xray-fdr
SUBDIR+= xray-profiling
.endif # amd64
+.if ${MACHINE_CPUARCH} == "riscv"
+SUBDIR+= asan
+SUBDIR+= asan-preinit
+SUBDIR+= asan_cxx
+SUBDIR+= asan_dynamic
+SUBDIR+= ubsan_minimal
+SUBDIR+= ubsan_standalone
+SUBDIR+= ubsan_standalone_cxx
+.endif # riscv
+
SUBDIR+= profile
SUBDIR_PARALLEL=