From c2e1c33726d97cb0a7b7b4e9a677f3915b6d54ce Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot Date: Wed, 4 Dec 2013 15:55:39 +0100 Subject: [PATCH] Make ROOT working on cygwin again Check for correct library files format on cygwin (fix loading libraries issue) --- lib/Interpreter/DynamicLibraryManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Interpreter/DynamicLibraryManager.cpp b/lib/Interpreter/DynamicLibraryManager.cpp index 962d3dce..9edbd493 100644 --- a/lib/Interpreter/DynamicLibraryManager.cpp +++ b/lib/Interpreter/DynamicLibraryManager.cpp @@ -39,7 +39,11 @@ namespace cling { || Magic == file_magic::macho_dynamically_linked_shared_lib || Magic == file_magic::macho_dynamically_linked_shared_lib_stub) #elif defined(LLVM_ON_UNIX) +#ifdef __CYGWIN__ + Magic == file_magic::pecoff_executable +#else Magic == file_magic::elf_shared_object +#endif #elif defined(LLVM_ON_WIN32) (Magic == file_magic::pecoff_executable) #else