git: 8c56b338da74 - stable/13 - riscv64: enable ASAN and UBSAN

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 08 Feb 2022 12:28:13 UTC
The branch stable/13 has been updated by pkubaj (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=8c56b338da744b174f31809c4514e06350bf6360

commit 8c56b338da744b174f31809c4514e06350bf6360
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-01-14 00:28:55 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-02-08 12:26:03 +0000

    riscv64: enable ASAN and UBSAN
    
    Differential review:    https://reviews.freebsd.org/D33875
    Approved by:    dim, imp
    
    (cherry picked from commit 9fc131426694387dda365c8624ddc85cb567d727)
---
 lib/libclang_rt/Makefile | 10 ++++++++++
 1 file changed, 10 insertions(+)

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=