summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-08-12 19:03:39 +0000
committertnn <tnn@pkgsrc.org>2022-08-12 19:03:39 +0000
commit3d1d74f8da7e74f520c4a52184726cadf7c02f43 (patch)
treeeade5d91bd36db4fc7bbf854a0432ca2b26349c5 /lang
parent2e8328c118b6a1db277373b6458e77aea5d06ff3 (diff)
downloadpkgsrc-3d1d74f8da7e74f520c4a52184726cadf7c02f43.tar.gz
clang: fix PLIST error when llvm does not have llvm-target-riscv enabled
Diffstat (limited to 'lang')
-rw-r--r--lang/clang/Makefile7
-rw-r--r--lang/clang/PLIST4
2 files changed, 8 insertions, 3 deletions
diff --git a/lang/clang/Makefile b/lang/clang/Makefile
index eaf0299ae35..4bb7161d267 100644
--- a/lang/clang/Makefile
+++ b/lang/clang/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2022/08/12 08:45:44 pin Exp $
+# $NetBSD: Makefile,v 1.72 2022/08/12 19:03:39 tnn Exp $
.include "Makefile.common"
@@ -6,4 +6,9 @@ PKGNAME= ${DISTNAME:S/.src//}
USE_TOOLS+= perl:run
+PLIST_VARS+= RISCV
+.if !empty(PKG_BUILD_OPTIONS.llvm:Mllvm-target-riscv)
+PLIST.RISCV= yes
+.endif
+
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/clang/PLIST b/lang/clang/PLIST
index 56f5677350a..f97639f445b 100644
--- a/lang/clang/PLIST
+++ b/lang/clang/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.34 2022/08/12 08:45:44 pin Exp $
+@comment $NetBSD: PLIST,v 1.35 2022/08/12 19:03:39 tnn Exp $
bin/analyze-build
bin/c-index-test
bin/clang
@@ -827,7 +827,7 @@ lib/clang/${PKGVERSION}/include/ppc_wrappers/xmmintrin.h
lib/clang/${PKGVERSION}/include/prfchwintrin.h
lib/clang/${PKGVERSION}/include/ptwriteintrin.h
lib/clang/${PKGVERSION}/include/rdseedintrin.h
-lib/clang/${PKGVERSION}/include/riscv_vector.h
+${PLIST.RISCV}lib/clang/${PKGVERSION}/include/riscv_vector.h
lib/clang/${PKGVERSION}/include/rtmintrin.h
lib/clang/${PKGVERSION}/include/s390intrin.h
lib/clang/${PKGVERSION}/include/serializeintrin.h