Add two FreeBSD customizations to libc++
authorDimitry Andric <dim@FreeBSD.org>
Sun, 7 Jan 2024 11:32:29 +0000 (12:32 +0100)
committerDimitry Andric <dim@FreeBSD.org>
Sat, 6 Apr 2024 20:13:25 +0000 (22:13 +0200)
commit412fa3436f0d1fe4a7e5e3b66783aa40f599125e
tree977790384d6770f1bbb37d68ee59e7b96b34671f
parent653487bbc8006839d0895811942bb8a2fcdd5aa8
Add two FreeBSD customizations to libc++

This is intended to better support ports usage of older clang versions:
* Add _LIBCPP_ENABLE_COMPILER_VERSION_CHECKS block around compiler
  version checks, to avoid any warnings about support. This makes some
  ports that use -Werror fall over.
* When using clang < 15.0, avoid using a type visibility attribute on
  the std namespace, as older versions of clang do not support this.

PR: 276104
MFC after: 1 month
contrib/llvm-project/libcxx/include/__config