aboutsummaryrefslogtreecommitdiff
path: root/targets
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-10-31 00:03:46 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-10-31 00:03:46 +0000
commit6c0e75234979fddf587408a8699ba4ad1d8440ed (patch)
tree93849462c8789bd9c07bed14203628a4acff7360 /targets
parent389bd18d0b45c5726c00383f53717e4441016b07 (diff)
downloadsrc-6c0e75234979fddf587408a8699ba4ad1d8440ed.tar.gz
src-6c0e75234979fddf587408a8699ba4ad1d8440ed.zip
Provide clang-rt for the clang toolchain as well.
Sponsored by: Dell EMC Isilon
Notes
Notes: svn path=/head/; revision=325184
Diffstat (limited to 'targets')
-rw-r--r--targets/pseudo/clang/Makefile.depend22
1 files changed, 22 insertions, 0 deletions
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