mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-28 00:51:41 +02:00
eclass/toolchain-funcs: Sync with Gentoo
It's from Gentoo commit 1dd3378347f15c27b82237443f3a4825b4e70b3d.
This commit is contained in:
parent
7c63d4bf93
commit
c2219291b3
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user