[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] (no subject)
From: |
Yves Renard |
Subject: |
[Getfem-commits] (no subject) |
Date: |
Thu, 14 Dec 2023 03:19:06 -0500 (EST) |
branch: master
commit 5582edc12a753ee7d80cadac5767462b07ce9d75
Author: Matthias Bussonnier <bussonniermatthias@gmail.com>
AuthorDate: Wed Dec 13 14:51:22 2023 +0100
Explicitly opt-out of clang, got gcc specific instructions.
Clangs sometime pretends to be GCC or to support GNU C extensions but
does not. Thus skip GCC code when we are clang.
---
src/gmm/gmm_except.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gmm/gmm_except.h b/src/gmm/gmm_except.h
index 442de139..271d261f 100644
--- a/src/gmm/gmm_except.h
+++ b/src/gmm/gmm_except.h
@@ -394,7 +394,7 @@ inline void GMM_THROW() {}
// exit(1);
// }
-#if defined(__GNUC__) && (__GNUC__ > 3)
+#if defined(__GNUC__) && (__GNUC__ > 3) && !defined(__clang__)
# define GMM_SET_EXCEPTION_DEBUG \
std::set_terminate(__gnu_cxx::__verbose_terminate_handler);
#else