From 42d3f5f833e59fa4d6a8d8aae6ad81f9451b5de4 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 15 Jun 2024 09:57:02 -0400 Subject: [PATCH] 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. --- bundled/kokkos-3.7.00/core/src/Kokkos_Macros.hpp | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5