summaryrefslogtreecommitdiff
path: root/debian/patches/fix-lldb-server-build
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-10-15 15:41:01 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-10-15 15:41:01 +0300
commit7a2b43796a4c38cf98fe05e8e4ec985318b2721b (patch)
treeb0f5611276e10646b654f7d5ed12c6e6060353be /debian/patches/fix-lldb-server-build
downloadllvm-toolchain-5.0-debian.tar.gz
Imported llvm-toolchain-5.0 (1:5.0-4)debian/5.0-4debian
Diffstat (limited to 'debian/patches/fix-lldb-server-build')
-rw-r--r--debian/patches/fix-lldb-server-build73
1 files changed, 73 insertions, 0 deletions
diff --git a/debian/patches/fix-lldb-server-build b/debian/patches/fix-lldb-server-build
new file mode 100644
index 0000000..c9f92d4
--- /dev/null
+++ b/debian/patches/fix-lldb-server-build
@@ -0,0 +1,73 @@
+---
+ cmake/modules/AddLLVM.cmake | 2 -
+ polly/lib/CMakeLists.txt | 47 +++++++++++++++++---------------------------
+ 2 files changed, 20 insertions(+), 29 deletions(-)
+
+--- a/cmake/modules/AddLLVM.cmake
++++ b/cmake/modules/AddLLVM.cmake
+@@ -501,7 +501,7 @@ function(llvm_add_library name)
+ # On DLL platforms symbols are imported from the tool by linking against it.
+ set(llvm_libs ${ARG_PLUGIN_TOOL})
+ elseif (DEFINED LLVM_LINK_COMPONENTS OR DEFINED ARG_LINK_COMPONENTS)
+- if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB)
++ if (NOT ARG_STATIC AND LLVM_LINK_LLVM_DYLIB AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB)
+ set(llvm_libs LLVM)
+ else()
+ llvm_map_components_to_libnames(llvm_libs
+--- a/polly/lib/CMakeLists.txt
++++ b/polly/lib/CMakeLists.txt
+@@ -66,35 +66,26 @@ endif (GPU_CODEGEN)
+
+ target_link_libraries(Polly PollyISL jsoncpp)
+
+-if (BUILD_SHARED_LIBS)
+- target_link_libraries(Polly
+- LLVMSupport
+- LLVMCore
+- LLVMScalarOpts
+- LLVMInstCombine
+- LLVMTransformUtils
+- LLVMAnalysis
+- LLVMipo
+- LLVMMC
++target_link_libraries(Polly
++ LLVMSupport
++ LLVMCore
++ LLVMScalarOpts
++ LLVMInstCombine
++ LLVMTransformUtils
++ LLVMAnalysis
++ LLVMipo
++ LLVMMC
+ # The libraries below are required for darwin: http://PR26392
+- LLVMBitReader
+- LLVMMCParser
+- LLVMObject
+- LLVMProfileData
+- LLVMTarget
+- LLVMVectorize
+- )
+- link_directories(
+- ${LLVM_LIBRARY_DIR}
+- )
+-elseif (LLVM_LINK_LLVM_DYLIB)
+- target_link_libraries(Polly
+- LLVM
+- )
+- link_directories(
+- ${LLVM_LIBRARY_DIR}
+- )
+-endif()
++ LLVMBitReader
++ LLVMMCParser
++ LLVMObject
++ LLVMProfileData
++ LLVMTarget
++ LLVMVectorize
++)
++link_directories(
++ ${LLVM_LIBRARY_DIR}
++)
+
+ # Build a monolithic Polly.a and a thin module LLVMPolly.moduleext that links to
+ # that static library.