git: 8855efffd4fa - main - devel/llvm23: 23.1.0-rc3
Brooks Davis <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.ports |
|---|---|
| Message-ID | <6a7edd26.423c1.605d8743__32749.6909465239$1786699071$gmane$org@gitrepo.freebsd.org> |
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=8855efffd4fa0467a5faff409d18444f76c0dbfb commit 8855efffd4fa0467a5faff409d18444f76c0dbfb Author: Brooks Davis <[email protected]> AuthorDate: 2026-08-14 09:16:40 +0000 Commit: Brooks Davis <[email protected]> CommitDate: 2026-08-14 09:17:12 +0000 devel/llvm23: 23.1.0-rc3 Attempt to fix compilation on 32-bit targets. Sponsored by: DARPA, AFRL --- devel/llvm23/Makefile | 12 ++---------- devel/llvm23/distinfo | 6 +++--- .../files/patch-llvm_include_llvm_Support_Allocator.h | 14 ++++++++++++++ 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/devel/llvm23/Makefile b/devel/llvm23/Makefile index 9a6cf7b196b4..d8bb78967158 100644 --- a/devel/llvm23/Makefile +++ b/devel/llvm23/Makefile @@ -1,5 +1,5 @@ PORTNAME= llvm -DISTVERSION= 23.1.0-rc2 +DISTVERSION= 23.1.0-rc3 PORTREVISION= 0 CATEGORIES= devel lang MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION}/ @@ -428,17 +428,9 @@ _BE_LIBS_${BE}+= ${_BE_LIBS_COMMON:S/^/${BE_ARCH}/} \ ${_BE_LIBS_${BE_ARCH}:S/^/${BE_ARCH}/} \ ${_BE_LIBS_BACKWARDS_${BE_ARCH}:S/$/${BE_ARCH}/} _BE_INCS_${BE}+= ${_BE_INCS_${BE_ARCH}} -_BE_MODS_${BE}+= ${_BE_MODS_${BE_ARCH}} .endfor .endfor -BE_PATTERN=LLVM(${_BE_LIBS_STANDARD:O:S/$/.a/:ts|})|${_BE_INCS_STANDARD:ts|}|${_BE_MODS_STANDARD:ts|} - -.if ${PORT_OPTIONS:MFLANG} -.for BE in FREEBSD NATIVE STANDARD -BE_${BE}_PLIST_FILES+= \ - ${_BE_MODS_${BE}:S|^|${LLVM_DIR}/include/flang/|:N${LLVM_DIR}/include/flang/$} -.endfor -.endif +BE_PATTERN=LLVM(${_BE_LIBS_STANDARD:O:S/$/.a/:ts|})|${_BE_INCS_STANDARD:ts|} .if ${ARCH} == "aarch64" COMPILER_RT_ARCHS= aarch64 diff --git a/devel/llvm23/distinfo b/devel/llvm23/distinfo index 8024cee53fa3..4aa0c2be508e 100644 --- a/devel/llvm23/distinfo +++ b/devel/llvm23/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1785252231 -SHA256 (llvm-project-23.1.0-rc2.src.tar.xz) = d4ad0bd64235891cae1a81a3bec6f38ec5d285be7a2d7cb194ce08e4ab67eee9 -SIZE (llvm-project-23.1.0-rc2.src.tar.xz) = 179079292 +TIMESTAMP = 1786637443 +SHA256 (llvm-project-23.1.0-rc3.src.tar.xz) = 15796d21e2c5818895edf06a46d7748972b0cb799a499112045b056972f9984b +SIZE (llvm-project-23.1.0-rc3.src.tar.xz) = 179126732 diff --git a/devel/llvm23/files/patch-llvm_include_llvm_Support_Allocator.h b/devel/llvm23/files/patch-llvm_include_llvm_Support_Allocator.h new file mode 100644 index 000000000000..3895eb68d164 --- /dev/null +++ b/devel/llvm23/files/patch-llvm_include_llvm_Support_Allocator.h @@ -0,0 +1,14 @@ +--- llvm/include/llvm/Support/Allocator.h.orig ++++ llvm/include/llvm/Support/Allocator.h +@@ -64,7 +64,11 @@ + /// CurPtr when the requested alignment is no greater than MinAlign. + template <typename AllocatorT = MallocAllocator, size_t SlabSize = 4096, + size_t SizeThreshold = SlabSize, size_t GrowthDelay = 128, ++#ifdef __ILP32__ ++ size_t MinAlign = 4> ++#else + size_t MinAlign = 8> ++#endif + class BumpPtrAllocatorImpl + : public AllocatorBase<BumpPtrAllocatorImpl< + AllocatorT, SlabSize, SizeThreshold, GrowthDelay, MinAlign>>,