[all-commits] [llvm/llvm-project] 6021c7: [libc++][Modules] locale fails to compile with cla...
Ian Anderson via All-commits
all-commits at lists.llvm.org
Thu Aug 24 14:22:56 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6021c78fe55e3c4d3e073710bfe279c6a28566d4
https://github.com/llvm/llvm-project/commit/6021c78fe55e3c4d3e073710bfe279c6a28566d4
Author: Ian Anderson <iana at apple.com>
Date: 2023-08-24 (Thu, 24 Aug 2023)
Changed paths:
M libcxx/include/__locale_dir/locale_base_api/locale_guard.h
Log Message:
-----------
[libc++][Modules] locale fails to compile with clang modules when _LIBCPP_LOCALE__L_EXTENSIONS is undefined
When `__locale_dir/locale_base_api/locale_guard.h is` compiled independently, as it is when it's in its own clang module, it fails to compile due to `locale_t` being undefined. It needs to include `__locale` to get that, instead of just `clocale`.
Reviewed By: ldionne, #libc
Differential Revision: https://reviews.llvm.org/D158669
More information about the All-commits
mailing list