mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
Gentoo's clang can default to libc++ (llvm-core/clang-common writes --stdlib=libc++ into /etc/clang/gentoo-runtimes.cfg when llvm-runtimes/clang-runtime[libcxx] is set), which upstream's -Dlibcxx option cannot see. Ask the toolchain instead, so the libc++-specific link handling in meson.build is enabled whenever it is actually needed. Also, backport libcxx unwinding fix over glibc patch from upstream Signed-off-by: ShengYi Hung <aokblast@FreeBSD.org> Part-of: https://github.com/gentoo/gentoo/pull/46715 Closes: https://github.com/gentoo/gentoo/pull/46715 Signed-off-by: Sam James <sam@gentoo.org>