[all-commits] [llvm/llvm-project] 8a7846: [libc++] Bump the C++ Standard used to compile the...

Louis Dionne via All-commits all-commits at lists.llvm.org
Sun Nov 5 05:41:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a7846fe86f95e82c6bd5f4f45b8dd311320e903
      https://github.com/llvm/llvm-project/commit/8a7846fe86f95e82c6bd5f4f45b8dd311320e903
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-11-05 (Sun, 05 Nov 2023)

  Changed paths:
    M libcxx/CMakeLists.txt
    M libcxx/src/include/sso_allocator.h
    M libcxx/src/locale.cpp
    M libcxxabi/src/CMakeLists.txt

  Log Message:
  -----------
  [libc++] Bump the C++ Standard used to compile the dylib to C++23 (#66824)

This is necessary in order to implement some papers like P2467R1, which
require using C++23 declarations in the dylib. It is a good habit to
keep building the dylib with a recent standard version regardless.

With this patch, we also stop strictly enforcing that the targets are
built with C++23. Concretely, C++23 will soon be required in order to
build the dylib, but not enforcing it strictly works around some issues
like the documentation bots using an old and unsupported compiler. Since
these bots do not actually build the library, not strictly enforcing the
C++ Standard makes our CMake build more resilient to these kinds of
situation. This is just a workaround though, the better way of going
about would be to update the compiler on the documentation bot but we
don't seem to have control over that.




More information about the All-commits mailing list