Skip to content

Commit 8b0bfdf

Browse files
committed
Build libc++ / libc++abi 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) This also bumps libc++abi to C++23 because... why not
1 parent 4b969c3 commit 8b0bfdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/system_libs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,7 @@ class libcxxabi(NoExceptLibrary, MTLibrary, DebugLibrary):
15651565
'-D_LIBCPP_BUILDING_LIBRARY',
15661566
'-D_LIBCXXABI_BUILDING_LIBRARY',
15671567
'-DLIBCXXABI_NON_DEMANGLING_TERMINATE',
1568-
'-std=c++20',
1568+
'-std=c++23',
15691569
]
15701570
includes = ['system/lib/libcxx/src']
15711571

@@ -1642,7 +1642,7 @@ class libcxx(NoExceptLibrary, MTLibrary):
16421642
# by `filesystem/directory_iterator.cpp`: https://reviews.llvm.org/D119670
16431643
'-Wno-unqualified-std-cast-call',
16441644
'-Wno-unknown-warning-option',
1645-
'-std=c++20',
1645+
'-std=c++23',
16461646
]
16471647

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

0 commit comments

Comments
 (0)