OSDN Git Service

fix build on cygwin
authorNuno Lopes <nunoplopes@sapo.pt>
Thu, 6 Oct 2016 09:32:16 +0000 (09:32 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Thu, 6 Oct 2016 09:32:16 +0000 (09:32 +0000)
Cygwin has dlfcn.h, but no Dl_info

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283427 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Unix/Signals.inc

index 46b640a..9752b70 100644 (file)
@@ -412,7 +412,7 @@ void llvm::sys::PrintStackTrace(raw_ostream &OS) {
 
   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;