diff --git a/debian/patches/fix-include-next-bootstrap.diff b/debian/patches/fix-include-next-bootstrap.diff deleted file mode 100644 index 0ad00550..00000000 --- a/debian/patches/fix-include-next-bootstrap.diff +++ /dev/null @@ -1,41 +0,0 @@ -When doing a bootstrap, we use a newly built clang. -When this one is used, if already installed on the system, -we have clang header in two places: -llvm-toolchain-7-7/build-llvm/lib/clang/7.0.0/include/inttypes.h -and -/usr/include/clang/7.0.0/include/inttypes.h - -Because clang expects only one of his headers to be available, it uses -include_next to get the glibc (libc6-dev package) header. - -However, in the previous example, because we have inttypes.h twice in the -include search path, clang's header will call itself without any effect. -Therefor, it will do include_next until the define from the libc is existing (ex: _INTTYPES_H) - - -Index: llvm-toolchain-7-7/clang/lib/Headers/inttypes.h -=================================================================== ---- llvm-toolchain-7-7.orig/clang/lib/Headers/inttypes.h -+++ llvm-toolchain-7-7/clang/lib/Headers/inttypes.h -@@ -20,7 +20,7 @@ - * - \*===----------------------------------------------------------------------===*/ - --#ifndef __CLANG_INTTYPES_H -+#if !defined(__CLANG_INTTYPES_H) || !defined(_INTTYPES_H) - #define __CLANG_INTTYPES_H - - #if defined(_MSC_VER) && _MSC_VER < 1800 -Index: llvm-toolchain-7-7/clang/lib/Headers/limits.h -=================================================================== ---- llvm-toolchain-7-7.orig/clang/lib/Headers/limits.h -+++ llvm-toolchain-7-7/clang/lib/Headers/limits.h -@@ -22,7 +22,7 @@ - * - \*===----------------------------------------------------------------------===*/ - --#ifndef __CLANG_LIMITS_H -+#if !defined(__CLANG_LIMITS_H) || !defined(_LIBC_LIMITS_H_) - #define __CLANG_LIMITS_H - - /* The system's limits.h may, in turn, try to #include_next GCC's limits.h. diff --git a/debian/patches/fix-lldb-server-build b/debian/patches/fix-lldb-server-build deleted file mode 100644 index c9f92d4d..00000000 --- a/debian/patches/fix-lldb-server-build +++ /dev/null @@ -1,73 +0,0 @@ ---- - 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. diff --git a/debian/patches/install-lldb-sb-headers.patch b/debian/patches/install-lldb-sb-headers.patch deleted file mode 100644 index a1ee4364..00000000 --- a/debian/patches/install-lldb-sb-headers.patch +++ /dev/null @@ -1,58 +0,0 @@ -From 8f577000b2fe2f5bf5d08e352a2f15f9421f9c82 Mon Sep 17 00:00:00 2001 -From: Pavel Labath -Date: Thu, 8 Mar 2018 15:52:46 +0000 -Subject: [PATCH] Install lldb's SB headers (pr36630) - -These were removed in r309021 in what looks like an accidentally -committed change. This brings them back. - -I also rename the header component to lldb-headers (instead of -lldb_headers) to match the llvm style and add a special -install-lldb-headers target, which installs just the headers. - -git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@327016 91177308-0d34-0410-b5e6-96231b3b80d8 -Origin: upstream, https://github.com/llvm-mirror/lldb/commit/8f577000b2fe2f5bf5d08e352a2f15f9421f9c82.patch -Bug-Ubuntu: https://launchpad.net/bugs/1761009 -Forwarded: will be done by Nishanth Aravamudan -Last-Update: 2018-04-05 - ---- llvm-toolchain-6.0-6.0.orig/lldb/cmake/modules/LLDBConfig.cmake -+++ llvm-toolchain-6.0-6.0/lldb/cmake/modules/LLDBConfig.cmake -@@ -277,27 +277,31 @@ include_directories(BEFORE - - if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY) - install(DIRECTORY include/ -- COMPONENT lldb_headers -+ COMPONENT lldb-headers - DESTINATION include - FILES_MATCHING - PATTERN "*.h" - PATTERN ".svn" EXCLUDE - PATTERN ".cmake" EXCLUDE - PATTERN "Config.h" EXCLUDE -- PATTERN "lldb-*.h" EXCLUDE -- PATTERN "API/*.h" EXCLUDE - ) - - install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/ -- COMPONENT lldb_headers -+ COMPONENT lldb-headers - DESTINATION include - FILES_MATCHING - PATTERN "*.h" - PATTERN ".svn" EXCLUDE - PATTERN ".cmake" EXCLUDE -- PATTERN "lldb-*.h" EXCLUDE -- PATTERN "API/*.h" EXCLUDE - ) -+ -+ add_custom_target(lldb-headers) -+ set_target_properties(lldb-headers PROPERTIES FOLDER "Misc") -+ -+ if (NOT CMAKE_CONFIGURATION_TYPES) -+ add_llvm_install_targets(install-lldb-headers -+ COMPONENT lldb-headers) -+ endif() - endif() - - if (NOT LIBXML2_FOUND AND NOT (CMAKE_SYSTEM_NAME MATCHES "Windows"))