From: David Wells Date: Sat, 15 Jun 2024 13:57:02 +0000 (-0400) Subject: Fix a compilation error with Kokkos+musl libc. X-Git-Tag: v9.6.0-rc1~191^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17127%2Fhead;p=dealii.git Fix a compilation error with Kokkos+musl libc. Same as a7c7a4126de76da7f9f7ac157770183829839640 in kokkos/kokkos. This is a glibc, not standard, header so this feature doesn't work when we have a different libc. --- diff --git a/bundled/kokkos-3.7.00/core/src/Kokkos_Macros.hpp b/bundled/kokkos-3.7.00/core/src/Kokkos_Macros.hpp index 9dbd2de0c8..80f71007cf 100644 --- a/bundled/kokkos-3.7.00/core/src/Kokkos_Macros.hpp +++ b/bundled/kokkos-3.7.00/core/src/Kokkos_Macros.hpp @@ -653,7 +653,9 @@ static constexpr bool kokkos_omp_on_host() { return false; } #if (defined(KOKKOS_COMPILER_GNU) || defined(KOKKOS_COMPILER_CLANG) || \ defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_PGI)) && \ !defined(_WIN32) +#if __has_include() #define KOKKOS_IMPL_ENABLE_STACKTRACE +#endif #define KOKKOS_IMPL_ENABLE_CXXABI #endif