Module Name: src
Committed By: mrg
Date: Wed Jun 19 05:24:13 UTC 2019
Modified Files:
src/external/bsd/llvm/librt: Makefile
Log Message:
skip the radeon bits for non x86 platforms. they build fine, but
they're not linked into gallium, so avoid building them.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/llvm/librt/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/llvm/librt/Makefile
diff -u src/external/bsd/llvm/librt/Makefile:1.4 src/external/bsd/llvm/librt/Makefile:1.5
--- src/external/bsd/llvm/librt/Makefile:1.4 Wed Apr 3 15:21:58 2019
+++ src/external/bsd/llvm/librt/Makefile Wed Jun 19 05:24:13 2019
@@ -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 @@ SUBDIR= libLLVMAnalysis \
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 @@ SUBDIR+= \
libLLVMX86CodeGen
.endif
+.if ${BUILD_RADEON} == 1
SUBDIR+= \
.WAIT \
libLLVMAMDGPUMCTargetDesc \
@@ -66,6 +78,7 @@ SUBDIR+= \
libLLVMAMDGPUTargetInfo \
libLLVMAMDGPUAsmParser \
libLLVMAMDGPUUtils
+.endif
.if ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "aarch64eb"
SUBDIR+= \