[libcxx-commits] [libcxx] [libcxx] Configuration option to lower deque block size (PR #198348)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 3 01:27:23 PDT 2026


================
@@ -0,0 +1,33 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// <deque>
+
+// Test that std::__deque_block_size has lowered sizes when _LIBCPP_ABI_USE_SMALL_DEQUE_BLOCK_SIZE is defined to 1.
+
+// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_ABI_USE_SMALL_DEQUE_BLOCK_SIZE=1
----------------
philnik777 wrote:

```suggestion
// REQUIRES: libcpp-abi-use-small-deque-block-size
```
See e.g. `libcpp-abi-no-compressed-pair-padding` for how to do this.

https://github.com/llvm/llvm-project/pull/198348


More information about the libcxx-commits mailing list