From 6c0e75234979fddf587408a8699ba4ad1d8440ed Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Tue, 31 Oct 2017 00:03:46 +0000 Subject: [PATCH] Provide clang-rt for the clang toolchain as well. Sponsored by: Dell EMC Isilon --- targets/pseudo/clang/Makefile.depend | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/targets/pseudo/clang/Makefile.depend b/targets/pseudo/clang/Makefile.depend index 97dcb727d68e..3c2c44161c3c 100644 --- a/targets/pseudo/clang/Makefile.depend +++ b/targets/pseudo/clang/Makefile.depend @@ -12,6 +12,28 @@ DIRDEPS = \ usr.bin/clang/llvm-objdump \ usr.bin/clang/llvm-tblgen \ +.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" +DIRDEPS+= \ + lib/libclang_rt/include \ + lib/libclang_rt/asan \ + lib/libclang_rt/asan-preinit \ + lib/libclang_rt/asan_dynamic \ + lib/libclang_rt/asan_cxx \ + lib/libclang_rt/safestack \ + lib/libclang_rt/stats \ + lib/libclang_rt/stats_client \ + lib/libclang_rt/ubsan_standalone \ + lib/libclang_rt/ubsan_standalone_cxx \ + +.endif + +.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" || \ + (${MACHINE_CPUARCH} == "arm" && ${MACHINE_ARCH} != "armeb") +DIRDEPS+= \ + lib/libclang_rt/profile \ + +.endif + .if ${MK_LLDB} == "yes" DIRDEPS+= \ usr.bin/clang/lldb