sync -D_LIBCPP_USE_LOWER_DEQUE_BLOCK_SIZE patches from devel/llvm/22

so that this can build on lower-memory archs with llvm 22 (because it
spends hours building an additional copy of clang...)
This commit is contained in:
sthen
2026-06-17 08:54:40 +00:00
parent dbc7682c45
commit 55aa0aea76
4 changed files with 34 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ DPB_PROPERTIES = parallel
COMMENT= Clang extra tools
LLVM_V = 22.1.6
REVISION = 0
DISTNAME = llvm-project-${LLVM_V}.src
PKGNAME= clang-tools-extra-${LLVM_V}
@@ -0,0 +1,12 @@
Index: llvm/utils/TableGen/Basic/CMakeLists.txt
--- llvm/utils/TableGen/Basic/CMakeLists.txt.orig
+++ llvm/utils/TableGen/Basic/CMakeLists.txt
@@ -24,6 +24,8 @@ add_llvm_library(LLVMTableGenBasic OBJECT EXCLUDE_FROM
VTEmitter.cpp
)
+add_definitions(-D_LIBCPP_USE_LOWER_DEQUE_BLOCK_SIZE)
+
# Users may include its headers as "Basic/*.h"
target_include_directories(LLVMTableGenBasic
INTERFACE
@@ -0,0 +1,9 @@
Index: llvm/utils/TableGen/CMakeLists.txt
--- llvm/utils/TableGen/CMakeLists.txt.orig
+++ llvm/utils/TableGen/CMakeLists.txt
@@ -81,3 +81,5 @@ add_tablegen(llvm-tblgen LLVM
DEPENDS
intrinsics_gen # via llvm-min-tablegen
)
+
+add_definitions(-D_LIBCPP_USE_LOWER_DEQUE_BLOCK_SIZE)
@@ -0,0 +1,12 @@
Index: llvm/utils/TableGen/Common/CMakeLists.txt
--- llvm/utils/TableGen/Common/CMakeLists.txt.orig
+++ llvm/utils/TableGen/Common/CMakeLists.txt
@@ -44,6 +44,8 @@ add_llvm_library(LLVMTableGenCommon STATIC OBJECT EXCL
intrinsics_gen
)
+add_definitions(-D_LIBCPP_USE_LOWER_DEQUE_BLOCK_SIZE)
+
# Users may include its headers as "Common/*.h"
target_include_directories(LLVMTableGenCommon
PUBLIC