From 09099dd29fc4a1d6f91c60653e00b905cbe10cc4 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 8 Feb 2023 16:45:16 -0500 Subject: [PATCH] correct preprocessor logic for non-Linux machines --- lib/kokkos/core/src/Kokkos_Macros.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kokkos/core/src/Kokkos_Macros.hpp b/lib/kokkos/core/src/Kokkos_Macros.hpp index 1ba11481e7..e42944d819 100644 --- a/lib/kokkos/core/src/Kokkos_Macros.hpp +++ b/lib/kokkos/core/src/Kokkos_Macros.hpp @@ -653,7 +653,7 @@ 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__)) +#if (!defined(__linux__) || defined(__GLIBC_MINOR__)) #define KOKKOS_IMPL_ENABLE_STACKTRACE #endif #define KOKKOS_IMPL_ENABLE_CXXABI