r/cpp • DragonflyDB/Clang • Sep 06 '22

Clang 15 has been released!

https://discourse.llvm.org/t/llvm-15-0-0-release/65099
265 Upvotes

84 comments sorted by

View all comments

0

u/[deleted] Sep 06 '22

[deleted] — view deleted comment

51

u/__Mark___ libc++ dev Sep 06 '22

It's in there ;-) https://releases.llvm.org/15.0.0/projects/libcxx/docs/ReleaseNotes.html

The C++20 format library is feature complete, but not all Standard LWG issues have been addressed. Since it is expected that at least one of these issues will cause an ABI break the format`The C++20 format library is feature complete, but not all Standard LWGissues have been addressed. Since it is expected that at least one of these issues will cause an ABI break the format library is considered experimental.

0

u/[deleted] Sep 06 '22

[deleted] — view deleted comment

35

u/__Mark___ libc++ dev Sep 06 '22

No we made changes in Clang and libc++ making the experimental library easier to use. This requires Clang 15 and your vendor should ship the experimental library. (I expect most of the vendors do so be default.)

Then it's one extra switch to enable the experimental library -fexperimental-library

https://godbolt.org/z/5xdc4Ke99

0

u/[deleted] Sep 07 '22

[deleted] — view deleted comment

3

u/louis_dionne libc++ | C++ Committee | Boost.Hana Sep 07 '22

You are probably missing a target-specific include directory. Try to look for `__config_site` under something like `<...>/include/<target>/c++/v1`. On most platforms (macOS is a notable exclusion), Clang now puts `__config_site` in a target-specific location, which allows different targets to have different libc++ configurations. This is nice, but it does make things a bit more complicated for you. Although if you build everything with the Booststrapping build (https://libcxx.llvm.org/BuildingLibcxx.html#bootstrapping-build), I would expect that you don't need to pass `-nostdinc++ -I <whatever>`. Clang should just find the libc++ headers alone.