summaryrefslogtreecommitdiff
path: root/parallel
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-09-20 09:05:30 +0000
committernia <nia@pkgsrc.org>2021-09-20 09:05:30 +0000
commitebdfb8a5355aa5a3e2876fe47713c46d766442c4 (patch)
tree7beae06a907fe870b0e98759fe54da23b4740c22 /parallel
parenteff6be0758ef60505acf1387c41c950d2397d25b (diff)
downloadpkgsrc-ebdfb8a5355aa5a3e2876fe47713c46d766442c4.tar.gz
pocl: work around broken CPU detection on aarch64
Diffstat (limited to 'parallel')
-rw-r--r--parallel/pocl/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/parallel/pocl/Makefile b/parallel/pocl/Makefile
index 7205ce728b2..9285e49fd7f 100644
--- a/parallel/pocl/Makefile
+++ b/parallel/pocl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2021/06/11 15:09:23 nia Exp $
+# $NetBSD: Makefile,v 1.5 2021/09/20 09:05:30 nia Exp $
DISTNAME= pocl-1.7
PKGREVISION= 2
@@ -33,6 +33,11 @@ GENERATE_PLIST+= find ${DESTDIR}${PREFIX} \( -type f -o -type l \) -print | \
.include "../../mk/bsd.prefs.mk"
+# "LLVM could not recognize your CPU model automatically..."
+.if !empty(MACHINE_ARCH:Maarch64*)
+CMAKE_ARGS+= -DLLC_HOST_CPU="cortex-a53"
+.endif
+
pre-configure:
.if empty(PKGSRC_COMPILER:M*clang*)
# XXX: When using GCC, pkgsrc provides 'clang' wrappers that are actually gcc.