diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-11 01:37:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-11 01:37:01 +0100 |
commit | 179be85ade6b2b47bf362865b5c375969ab5ddc8 (patch) | |
tree | 073bcd19b7e1bb84acd2f683936671ee88860970 /sys-devel/llvm/llvm-13.0.1.ebuild | |
parent | 948f9476d6a417da6048d4291bf36b0507293d63 (diff) |
gentoo auto-resync : 11:10:2022 - 01:37:00
Diffstat (limited to 'sys-devel/llvm/llvm-13.0.1.ebuild')
-rw-r--r-- | sys-devel/llvm/llvm-13.0.1.ebuild | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys-devel/llvm/llvm-13.0.1.ebuild b/sys-devel/llvm/llvm-13.0.1.ebuild index 2d52bf8cfe60..598476d25566 100644 --- a/sys-devel/llvm/llvm-13.0.1.ebuild +++ b/sys-devel/llvm/llvm-13.0.1.ebuild @@ -174,18 +174,6 @@ src_prepare() { llvm.org_src_prepare } -# Is LLVM being linked against libc++? -is_libcxx_linked() { - local code='#include <ciso646> -#if defined(_LIBCPP_VERSION) - HAVE_LIBCXX -#endif -' - local out=$($(tc-getCXX) ${CXXFLAGS} ${CPPFLAGS} -x c++ -E -P - <<<"${code}") || return 1 - - [[ ${out} == *HAVE_LIBCXX* ]] -} - get_distribution_components() { local sep=${1-;} @@ -367,7 +355,7 @@ multilib_src_configure() { -DOCAMLFIND=NO ) - if is_libcxx_linked; then + if [[ $(tc-get-cxx-stdlib) == libc++ ]]; then # Smart hack: alter version suffix -> SOVERSION when linking # against libc++. This way we won't end up mixing LLVM libc++ # libraries with libstdc++ clang, and the other way around. |