svn commit: r529772 - head/benchmarks/libcelero

Yuri Victorovich yuri at FreeBSD.org
Sun Mar 29 06:05:57 UTC 2020


Author: yuri
Date: Sun Mar 29 06:05:47 2020
New Revision: 529772
URL: https://svnweb.freebsd.org/changeset/ports/529772

Log:
  benchmarks/libcelero: Fix build
  
  Fix breakage with clang10 by switching to clang-8:
  error: loop variable 'udm' of type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>' creates a copy from type 'const std::__1::shared_ptr<celero::UserDefinedMeasurement>'
  https://github.com/DigitalInBlue/Celero/issues/142
  
  Reported by:	fallout

Modified:
  head/benchmarks/libcelero/Makefile

Modified: head/benchmarks/libcelero/Makefile
==============================================================================
--- head/benchmarks/libcelero/Makefile	Sun Mar 29 05:57:28 2020	(r529771)
+++ head/benchmarks/libcelero/Makefile	Sun Mar 29 06:05:47 2020	(r529772)
@@ -3,6 +3,7 @@
 PORTNAME=	libcelero
 DISTVERSIONPREFIX=	v
 DISTVERSION=	2.6.0
+PORTREVISION=	1
 CATEGORIES=	benchmarks
 
 MAINTAINER=	yuri at FreeBSD.org
@@ -13,10 +14,17 @@ LICENSE_FILE=	${WRKSRC}/license.txt
 
 BUILD_DEPENDS=	${LOCALBASE}/include/sys/sysinfo.h:devel/libsysinfo
 
-USES=		cmake compiler:c++11-lang localbase:ldflags
+USES=		cmake localbase:ldflags # compiler:c++11-lang
 USE_GITHUB=	yes
 GH_ACCOUNT=	DigitalInBlue
 GH_PROJECT=	Celero
 USE_LDCONFIG=	yes
+
+# workaround for breakage with clang-10: https://github.com/DigitalInBlue/Celero/issues/142
+LLVM_VER=	80
+BUILD_DEPENDS+=	clang${LLVM_VER}:devel/llvm${LLVM_VER}
+CPP=		clang-cpp${LLVM_VER}
+CC=		clang${LLVM_VER}
+CXX=		clang++${LLVM_VER}
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list