Skip to content

Commit e0864b5

Browse files
authored
[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.
1 parent 5220e4f commit e0864b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libcxx/include/module.modulemap.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,10 @@ module std [system] {
934934
module chars_format { header "__charconv/chars_format.h" }
935935
module from_chars_floating_point { header "__charconv/from_chars_floating_point.h" }
936936
module from_chars_integral { header "__charconv/from_chars_integral.h" }
937-
module from_chars_result { header "__charconv/from_chars_result.h" }
937+
module from_chars_result {
938+
header "__charconv/from_chars_result.h"
939+
export std.system_error.errc
940+
}
938941
module tables { header "__charconv/tables.h" }
939942
module to_chars { header "__charconv/to_chars.h" }
940943
module to_chars_base_10 { header "__charconv/to_chars_base_10.h" }

0 commit comments

Comments
 (0)