eclass/toolchain-funcs: Sync with Gentoo

It's from Gentoo commit 1dd3378347f15c27b82237443f3a4825b4e70b3d.
This commit is contained in:
Flatcar Buildbot 2023-09-04 07:13:26 +00:00 committed by Krzesimir Nowak
parent 7c63d4bf93
commit c2219291b3

View File

@ -963,9 +963,9 @@ gcc-specs-stack-check() {
# @DESCRIPTION: # @DESCRIPTION:
# Return truth if the current compiler enables assertions in the C++ standard # Return truth if the current compiler enables assertions in the C++ standard
# library. For libstdc++, this is -D_GLIBCXX_ASSERTIONS, and for libcxx/libc++, # library. For libstdc++, this is -D_GLIBCXX_ASSERTIONS, and for libcxx/libc++,
# this is -D_LIBCPP_ENABLE_ASSERTIONS. # this is -D_LIBCPP_ENABLE_ASSERTIONS (deprecated) or -D_LIBCPP_ENABLE_HARDENED_MODE.
tc-enables-cxx-assertions() { tc-enables-cxx-assertions() {
tc-cpp-is-true "defined(_GLIBCXX_ASSERTIONS) || defined(_LIBCPP_ENABLE_ASSERTIONS)" ${CPPFLAGS} ${CXXFLAGS} tc-cpp-is-true "defined(_GLIBCXX_ASSERTIONS) || defined(_LIBCPP_ENABLE_ASSERTIONS) || defined(_LIBCPP_ENABLE_HARDENED_MODE)" ${CPPFLAGS} ${CXXFLAGS}
} }
# @FUNCTION: tc-enables-pie # @FUNCTION: tc-enables-pie