diff options
| author | Daniel Malea <daniel.malea@intel.com> | 2013-04-17 17:41:55 +0000 |
|---|---|---|
| committer | Daniel Malea <daniel.malea@intel.com> | 2013-04-17 17:41:55 +0000 |
| commit | 823638639ce03a94519a7347eb5f6ec604f9cba0 (patch) | |
| tree | 2fdd576c9f65a25bb994f6b9e8ceb1c8c3a2eb8c /lldb/source/Plugins/DynamicLoader | |
| parent | 9e90b62e018d8983d3477f3f1a4abeb685e50ae9 (diff) | |
| download | bcm5719-llvm-823638639ce03a94519a7347eb5f6ec604f9cba0.tar.gz bcm5719-llvm-823638639ce03a94519a7347eb5f6ec604f9cba0.zip | |
Fix Linux build of LLDB
- conditionally build mac-specific plugins only on mac (PluginObjectFileMachO, PluginDynamicLoaderDrawinKernel and PluginDynamicLoaderMacOSXDYLD)
- clean up warnings by ignoring deprecated declarations (auto_ptr for example)
llvm-svn: 179694
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader')
| -rw-r--r-- | lldb/source/Plugins/DynamicLoader/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/CMakeLists.txt b/lldb/source/Plugins/DynamicLoader/CMakeLists.txt index 22ce69c602e..0295b0aea28 100644 --- a/lldb/source/Plugins/DynamicLoader/CMakeLists.txt +++ b/lldb/source/Plugins/DynamicLoader/CMakeLists.txt @@ -1,4 +1,6 @@ -add_subdirectory(Darwin-Kernel)
-add_subdirectory(MacOSX-DYLD)
+if ( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
+ add_subdirectory(Darwin-Kernel)
+ add_subdirectory(MacOSX-DYLD)
+endif ()
add_subdirectory(POSIX-DYLD)
add_subdirectory(Static)
diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp index ea8fbd3f029..1ba40f07bbe 100644 --- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp @@ -30,6 +30,10 @@ #include "DynamicLoaderMacOSXDYLD.h" +#if defined(__linux__) +#include <linux/uuid.h> +#endif + //#define ENABLE_DEBUG_PRINTF // COMMENT THIS LINE OUT PRIOR TO CHECKIN #ifdef ENABLE_DEBUG_PRINTF #include <stdio.h> |

