git: 04e074c6fd45 - main - devel/llvm14: Update to 14.0.0 release
Date: Fri, 25 Mar 2022 22:50:27 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/ports/commit/?id=04e074c6fd452983ccfd931de0c43263d27fe1f3
commit 04e074c6fd452983ccfd931de0c43263d27fe1f3
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2022-03-25 22:49:58 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2022-03-25 22:49:58 +0000
devel/llvm14: Update to 14.0.0 release
Avoid a dependency of libunwind on sufficently recent systems where
the installed unwind.h can be found.
PR: 262707
Reported by: pkubaj
---
devel/llvm14/Makefile | 11 +++++++----
devel/llvm14/distinfo | 6 +++---
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/devel/llvm14/Makefile b/devel/llvm14/Makefile
index 73d459cc20f6..a62a794187db 100644
--- a/devel/llvm14/Makefile
+++ b/devel/llvm14/Makefile
@@ -1,5 +1,5 @@
PORTNAME= llvm
-DISTVERSION= 14.0.0rc4
+DISTVERSION= 14.0.0
PORTREVISION= 0
CATEGORIES= devel lang
MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \
@@ -134,9 +134,6 @@ CLANG_SUB_LIST= XCC=clang${LLVM_SUFFIX} \
X_COMPILER_TYPE=clang
CLANG_USE= GNOME=libxml2
COMPILER_RT_DESC= Sanitizer libraries
-# An unwind.h is require to build. I think an in-tree one should be used
-# but this seems to work as a workaround...
-COMPILER_RT_BUILD_DEPENDS= libunwind>0:devel/libunwind
COMPILER_RT_CMAKE_ON= -DCOMPILER_RT_INSTALL_PATH=${LLVM_PREFIX}/lib/clang/${LLVM_RELEASE}
# Allow unwind.h to be found reliably
COMPILER_RT_USES= localbase
@@ -273,6 +270,12 @@ MLIR_PATTERN= ${MLIR_COMMANDS:S/^/bin./:tW:C/ */|/g}|mlir|libMLIR|obj.MLIRCAP
.include <bsd.port.options.mk>
+.if ${OSVERSION} < 1300525
+# An unwind.h is require to build. I think an in-tree one should be used
+# but this seems to work as a workaround...
+COMPILER_RT_BUILD_DEPENDS= libunwind>0:devel/libunwind
+.endif
+
.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
EXTRA_PATCHES= ${FILESDIR}/extra-patch-clang_lib_Driver_ToolChains_Clang.cpp
.endif
diff --git a/devel/llvm14/distinfo b/devel/llvm14/distinfo
index 8351353de4d3..88c0f9192088 100644
--- a/devel/llvm14/distinfo
+++ b/devel/llvm14/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1647237419
-SHA256 (llvm-project-14.0.0rc4.src.tar.xz) = ca833d5ca97b2d46053f6d2759fcd9ec3201201275e0c2119a4680356f5b0a15
-SIZE (llvm-project-14.0.0rc4.src.tar.xz) = 105583596
+TIMESTAMP = 1648147417
+SHA256 (llvm-project-14.0.0.src.tar.xz) = 35ce9edbc8f774fe07c8f4acdf89ec8ac695c8016c165dd86b8d10e7cba07e23
+SIZE (llvm-project-14.0.0.src.tar.xz) = 105585028