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
This commit is contained in:
Axel Kohlmeyer
2023-01-27 12:21:13 -05:00
parent 34e8a74989
commit 4f0245d542

View File

@ -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