Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/llvm/librt skip the radeon bits for non x86 pla...
details: https://anonhg.NetBSD.org/src/rev/4053fb277135
branches: trunk
changeset: 457300:4053fb277135
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Jun 19 05:24:13 2019 +0000
description:
skip the radeon bits for non x86 platforms. they build fine, but
they're not linked into gallium, so avoid building them.
diffstat:
external/bsd/llvm/librt/Makefile | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diffs (47 lines):
diff -r c0a9395362cf -r 4053fb277135 external/bsd/llvm/librt/Makefile
--- a/external/bsd/llvm/librt/Makefile Wed Jun 19 05:17:05 2019 +0000
+++ b/external/bsd/llvm/librt/Makefile Wed Jun 19 05:24:13 2019 +0000
@@ -1,5 +1,12 @@
+# $NetBSD: Makefile,v 1.5 2019/06/19 05:24:13 mrg Exp $
+
.include <bsd.own.mk>
+BUILD_RADEON=0
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+BUILD_RADEON=1
+.endif
+
SUBDIR= libLLVMAnalysis \
libLLVMAsmParser \
libLLVMAsmPrinter \
@@ -30,8 +37,12 @@
libLLVMTransformsAggressiveInstCombine \
libLLVMTransformsCoroutines \
libLLVMTransformsUtils \
- libLLVMVectorize \
- libLLVMAMDGPUCodeGen \
+ libLLVMVectorize
+
+.if ${BUILD_RADEON} == 1
+SUBDIR+= \
+ libLLVMAMDGPUCodeGen
+.endif
.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "aarch64eb"
SUBDIR+= \
@@ -59,6 +70,7 @@
libLLVMX86CodeGen
.endif
+.if ${BUILD_RADEON} == 1
SUBDIR+= \
.WAIT \
libLLVMAMDGPUMCTargetDesc \
@@ -66,6 +78,7 @@
libLLVMAMDGPUTargetInfo \
libLLVMAMDGPUAsmParser \
libLLVMAMDGPUUtils
+.endif
.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "aarch64eb"
SUBDIR+= \
Home |
Main Index |
Thread Index |
Old Index