HomeFreeBSD

Add two FreeBSD customizations to libc++

Description

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

(cherry picked from commit 412fa3436f0d1fe4a7e5e3b66783aa40f599125e)

Details

Provenance
dimAuthored on Jan 7 2024, 11:32 AM
Parents
rG15ce79bc8b1f: Tentatively merge https://github.com/llvm/llvm-project/pull/77242
Branches
Unknown
Tags
Unknown