[all-commits] [llvm/llvm-project] dcc378: [libc++] Guard <codecvt> contents on _LIBCPP_HAS_L...

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Mar 11 13:26:46 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: dcc378e862de5ba51174ec1c77a73df8628f178b
      https://github.com/llvm/llvm-project/commit/dcc378e862de5ba51174ec1c77a73df8628f178b
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2025-03-11 (Tue, 11 Mar 2025)

  Changed paths:
    M libcxx/include/codecvt

  Log Message:
  -----------
  [libc++] Guard <codecvt> contents on _LIBCPP_HAS_LOCALIZATION (#129112)

The codecvt class is defined in <locale> and the contents of the
<codecvt> header don't work when localization is disabled. Without this
guard, builds with localization disabled that happen to include
<codecvt> could be broken because they would try to include <__locale>,
which ends up trying to include the locale base API and eventually
platform headers like <xlocale.h> that may not exist.

(cherry picked from commit fda7373daf5790833101c504be1c749bbb0fceb8)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list