pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/parallel/pocl pocl: work around broken CPU detection o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b6deaf6c5c76
branches:  trunk
changeset: 458821:b6deaf6c5c76
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Sep 20 09:05:30 2021 +0000

description:
pocl: work around broken CPU detection on aarch64

diffstat:

 parallel/pocl/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 9821d658f090 -r b6deaf6c5c76 parallel/pocl/Makefile
--- a/parallel/pocl/Makefile    Mon Sep 20 08:55:30 2021 +0000
+++ b/parallel/pocl/Makefile    Mon Sep 20 09:05:30 2021 +0000
@@ -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 @@
 
 .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.



Home | Main Index | Thread Index | Old Index