summaryrefslogtreecommitdiff
path: root/lib/libclang_rt
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-11-23 19:35:09 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-11-23 19:35:09 +0000
commit1bb8eb56ef2a2116347106c2df381e7d6801f328 (patch)
treecdfc821aec6e132d22b87b3dc21b9b636bb9f21b /lib/libclang_rt
parentbe252a414fcb69b1e19f16cf39e54066a1a13442 (diff)
downloadsrc-test2-1bb8eb56ef2a2116347106c2df381e7d6801f328.tar.gz
src-test2-1bb8eb56ef2a2116347106c2df381e7d6801f328.zip
libclang_rt: enable on powerpc*
Summary: Enable on powerpc64 and in lib/libclang_rt/Makefile change MACHINE_CPUARCH to MACHINE_ARCH because on powerpc64 MACHINE_ARCH==MACHINE_CPUARCH so the 32-bit library overwrites 64-bit library during installworld. This patch doesn't enable any other libclang_rt libraries because they need to be separately ported. I have verified that games/julius (which fails on powerpc64 elfv2 without this change because of no libclang_rt profiling library) builds. Test Plan: Ship it, test on powerpc and powerpcspe Submitted by: pkubaj Reviewed by: dim, jhibbits Differential Revision: https://reviews.freebsd.org/D22425 MFC after: 1 month X-MFC-With: r353358
Notes
Notes: svn path=/head/; revision=355034
Diffstat (limited to 'lib/libclang_rt')
-rw-r--r--lib/libclang_rt/Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libclang_rt/Makefile.inc b/lib/libclang_rt/Makefile.inc
index bb5c6c9194ac..aeaba094af5e 100644
--- a/lib/libclang_rt/Makefile.inc
+++ b/lib/libclang_rt/Makefile.inc
@@ -8,7 +8,7 @@
(!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "")
CRTARCH?= armhf
.else
-CRTARCH?= ${MACHINE_CPUARCH:C/amd64/x86_64/}
+CRTARCH?= ${MACHINE_ARCH:C/amd64/x86_64/}
.endif
CRTSRC= ${SRCTOP}/contrib/compiler-rt