From 4f0245d54207758d8804c60a2d283f4817d28d6f Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 27 Jan 2023 12:21:13 -0500 Subject: [PATCH] make Kokkos lib compatible with musl-libc Note: this was adapted from https://github.com/kokkos/kokkos/pull/5678 to be usable without requiring C++17 --- lib/kokkos/core/src/Kokkos_Macros.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/kokkos/core/src/Kokkos_Macros.hpp b/lib/kokkos/core/src/Kokkos_Macros.hpp index 9dbd2de0c8..1ba11481e7 100644 --- a/lib/kokkos/core/src/Kokkos_Macros.hpp +++ b/lib/kokkos/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 (defined(__linux__) && defined(__GLIBC_MINOR__)) #define KOKKOS_IMPL_ENABLE_STACKTRACE +#endif #define KOKKOS_IMPL_ENABLE_CXXABI #endif