[llvm] r283427 - fix build on cygwin

Nuno Lopes via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 6 02:32:16 PDT 2016


Author: nlopes
Date: Thu Oct  6 04:32:16 2016
New Revision: 283427

URL: http://llvm.org/viewvc/llvm-project?rev=283427&view=rev
Log:
fix build on cygwin
Cygwin has dlfcn.h, but no Dl_info

Modified:
    llvm/trunk/lib/Support/Unix/Signals.inc

Modified: llvm/trunk/lib/Support/Unix/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Signals.inc?rev=283427&r1=283426&r2=283427&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Signals.inc (original)
+++ llvm/trunk/lib/Support/Unix/Signals.inc Thu Oct  6 04:32:16 2016
@@ -412,7 +412,7 @@ void llvm::sys::PrintStackTrace(raw_ostr
 
   if (printSymbolizedStackTrace(Argv0, StackTrace, depth, OS))
     return;
-#if HAVE_DLFCN_H && __GNUG__
+#if HAVE_DLFCN_H && __GNUG__ && !defined(__CYGWIN__)
   int width = 0;
   for (int i = 0; i < depth; ++i) {
     Dl_info dlinfo;




More information about the llvm-commits mailing list