lmi-commits
[Top][All Lists]
Advanced

[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__



reply via email to

[Prev in Thread] Current Thread [Next in Thread]