[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 2cd4fe1 4/6: Only compile unwind.cpp when usi
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 2cd4fe1 4/6: Only compile unwind.cpp when using libstdc++ |
Date: |
Fri, 5 Mar 2021 08:58:48 -0500 (EST) |
branch: master
commit 2cd4fe19a621eba209720d453bcc4c9395840673
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Only compile unwind.cpp when using libstdc++
The code in this file uses libstdc++-specific types such as
__class_type_info and __dynamic_cast that are not provided by the other
compiler/standard library implementations, such as clang, so building it
with them currently fails.
For now simply don't use it unless we're building with libstdc++.
---
unwind.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/unwind.cpp b/unwind.cpp
index 7671f62..f154ebf 100644
--- a/unwind.cpp
+++ b/unwind.cpp
@@ -23,7 +23,7 @@
#include "unwind.hpp"
-#if defined LMI_X86_64 && defined LMI_POSIX
+#if defined LMI_X86_64 && defined LMI_POSIX && defined __GLIBCXX__
#define UNW_LOCAL_ONLY
@@ -194,4 +194,4 @@ void __cxa_throw(void* thrown_exception, std::type_info*
tinfo, void (*dest)(voi
original_cxa_throw(thrown_exception, tinfo, dest);
}
-#endif // defined LMI_X86_64 && defined LMI_POSIX
+#endif // defined LMI_X86_64 && defined LMI_POSIX && defined __GLIBCXX__
- [lmi-commits] [lmi] master updated (d8a8b60 -> 3a77860), Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 341c462 2/6: Install now required libunwind and libdw for the CI builds, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 8a96343 3/6: Link with libunwind and libdw if necessary in autotools build, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 6c161a0 5/6: Remove redundant test for __GNUC__, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 38a2a97 1/6: Permit a particular reserved name, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 3a77860 6/6: Remove pragma GCC diagnostic push without matching pop, Greg Chicares, 2021/03/05
- [lmi-commits] [lmi] master 2cd4fe1 4/6: Only compile unwind.cpp when using libstdc++,
Greg Chicares <=