Skip to content

Commit 9cd69bf

Browse files
committed
Build libc++ with C++23
https://github.com/llvm/llvm-project/blob/aadaa00de76ed0c4987b97450dd638f63a385bed/libcxx/src/expected.cpp was added in llvm/llvm-project#87390 and this file assumes C++23 to be compiled. Apparently libc++ sources are always built with C++23 so they don't guard things against it in `src/`: llvm/llvm-project#87390 (comment)
1 parent ead0fe1 commit 9cd69bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/system_libs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,7 @@ class libcxx(NoExceptLibrary, MTLibrary):
16461646
# by `filesystem/directory_iterator.cpp`: https://reviews.llvm.org/D119670
16471647
'-Wno-unqualified-std-cast-call',
16481648
'-Wno-unknown-warning-option',
1649-
'-std=c++20',
1649+
'-std=c++23',
16501650
]
16511651

16521652
includes = ['system/lib/libcxx/src']

0 commit comments

Comments
 (0)