Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jun 2023 14:09:01 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c748b7ef83ea - main - devel/phasar: Fix build on 14 by using C++ compiler provided by llvm package
Message-ID:  <202306191409.35JE91OL035415@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c748b7ef83ea213372740636c998f351825098c8

commit c748b7ef83ea213372740636c998f351825098c8
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-06-19 14:06:10 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-06-19 14:08:59 +0000

    devel/phasar: Fix build on 14 by using C++ compiler provided by llvm package
    
    Build was failing because C++ compiler was from a different llvm version
    than the llvm library provided by USES=llvm.
    
    PR:             272075
---
 devel/phasar/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/devel/phasar/Makefile b/devel/phasar/Makefile
index e079ac195660..1906d16e33c4 100644
--- a/devel/phasar/Makefile
+++ b/devel/phasar/Makefile
@@ -14,7 +14,7 @@ LIB_DEPENDS=	libboost_graph.so:devel/boost-libs \
 		libcurl.so:ftp/curl
 RUN_DEPENDS=	bash:shells/bash
 
-USES=		cmake:testing compiler:c++17-lang llvm:lib,min=14,max=14 localbase:ldflags python shebangfix sqlite
+USES=		cmake:testing llvm:lib,min=14,max=14 localbase:ldflags python shebangfix sqlite # compiler:c++17-lang
 USE_LDCONFIG=	yes
 
 USE_GITHUB=	yes
@@ -27,6 +27,10 @@ SHEBANG_GLOB=	*.py *.sh
 
 CMAKE_OFF=	PHASAR_BUILD_UNITTESTS
 
+CC=		${LLVM_PREFIX}/bin/clang
+CPP=		${LLVM_PREFIX}/bin/clang-cpp
+CXX=		${LLVM_PREFIX}/bin/clang++
+
 post-patch: # workaround for https://github.com/secure-software-engineering/phasar/issues/564
 	# fix up the config directory location
 	@${REINPLACE_CMD} \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306191409.35JE91OL035415>