mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
toolchain-funcs.eclass: update tc-get-cxx-stdlib for C++20
<ciso646> is gone from C++20, so use <version> for >= C++20. See https://stackoverflow.com/a/31658120. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1156,7 +1156,12 @@ tc-enables-ssp-all() {
|
||||
#
|
||||
# If the library is not recognized, the function returns 1.
|
||||
tc-get-cxx-stdlib() {
|
||||
local code='#include <ciso646>
|
||||
local code='
|
||||
#if __cplusplus >= 202002L
|
||||
#include <version>
|
||||
#else
|
||||
#include <ciso646>
|
||||
#endif
|
||||
|
||||
#if defined(_LIBCPP_VERSION)
|
||||
HAVE_LIBCXX
|
||||
|
||||
Reference in New Issue
Block a user