aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorPengxuan Zheng <pzheng@quicinc.com>2023-05-30 10:44:15 -0700
committerPengxuan Zheng <pzheng@quicinc.com>2023-05-30 17:59:32 -0700
commitfef23e8d871add8d885d335e4586a9fa420c1171 (patch)
treed945837428ed0a7e68a2ccaa8d8ad7f619a65bfd /clang/lib/Frontend/CompilerInvocation.cpp
parent7a1077baa01cd66afa193276796ee6679954d4e5 (diff)
downloadllvm-fef23e8d871add8d885d335e4586a9fa420c1171.zip
llvm-fef23e8d871add8d885d335e4586a9fa420c1171.tar.gz
llvm-fef23e8d871add8d885d335e4586a9fa420c1171.tar.bz2
[libc++] Include "bits/alltypes.h" to provide mbstate_t when using musl libc
With D148542, we ran into the following libc++ build error when using musl libc. ``` .../musl/include/bits/alltypes.h:354:16: error: definition of type '__mbstate_t' conflicts with typedef of the same name typedef struct __mbstate_t { unsigned __opaque1, __opaque2; } mbstate_t; ^ .../sysroot/usr/include/bits/types/__mbstate_t.h:21:3: note: '__mbstate_t' declared here } __mbstate_t; ^ 1 error generated. ``` This is because the mbstate_t definition in musl libc conflicts with the one from "bits/types/mbstate_t.h", and this patch attempts to fix this build issue when musl libc is used. Reviewed By: iana Differential Revision: https://reviews.llvm.org/D151740
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions