[libcxx-commits] [libcxx] e0864b5 - [libc++] Fix <charconv> not exporting std::errc (#146268)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 30 01:06:38 PDT 2025
Author: Nikolas Klauser
Date: 2025-06-30T10:06:34+02:00
New Revision: e0864b56b01696d7d386dfcc9437304282e1c84d
URL: https://github.com/llvm/llvm-project/commit/e0864b56b01696d7d386dfcc9437304282e1c84d
DIFF: https://github.com/llvm/llvm-project/commit/e0864b56b01696d7d386dfcc9437304282e1c84d.diff
LOG: [libc++] Fix <charconv> not exporting std::errc (#146268)
`<charconv>` doesn't properly export `std::errc` with locales disabled,
which causes the CI to fail. This fixed the modulemap to let
`from_chars_result` export `std::errc`, like it's supposed to do.
Added:
Modified:
libcxx/include/module.modulemap.in
Removed:
################################################################################
diff --git a/libcxx/include/module.modulemap.in b/libcxx/include/module.modulemap.in
index f878e15d70b1a..b00a8ebd54623 100644
--- a/libcxx/include/module.modulemap.in
+++ b/libcxx/include/module.modulemap.in
@@ -934,7 +934,10 @@ module std [system] {
module chars_format { header "__charconv/chars_format.h" }
module from_chars_floating_point { header "__charconv/from_chars_floating_point.h" }
module from_chars_integral { header "__charconv/from_chars_integral.h" }
- module from_chars_result { header "__charconv/from_chars_result.h" }
+ module from_chars_result {
+ header "__charconv/from_chars_result.h"
+ export std.system_error.errc
+ }
module tables { header "__charconv/tables.h" }
module to_chars { header "__charconv/to_chars.h" }
module to_chars_base_10 { header "__charconv/to_chars_base_10.h" }
More information about the libcxx-commits
mailing list