From 9afbef15b043637ec26b941ece41357f07ee7cbe Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Thu, 19 Mar 2020 21:25:33 +0100 Subject: [PATCH] cherry-pick upstream commit to unbreak mesa builds --- debian/changelog | 7 +++ ...64cce1db8debe2528f36b1fbd2b8af9c9401.patch | 43 +++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 51 insertions(+) create mode 100644 debian/patches/d21664cce1db8debe2528f36b1fbd2b8af9c9401.patch diff --git a/debian/changelog b/debian/changelog index fb121da7..3e78dab1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +llvm-toolchain-10 (1:10.0.0~+rc5-2) UNRELEASED; urgency=medium + + * debian/patches/d21664cce1db8debe2528f36b1fbd2b8af9c9401.patch: + - cherry-pick upstream commit to hopefully unbreak mesa builds + + -- Gianfranco Costamagna Thu, 19 Mar 2020 21:22:45 +0100 + llvm-toolchain-10 (1:10.0.0~+rc5-1) unstable; urgency=medium * Fith RC release diff --git a/debian/patches/d21664cce1db8debe2528f36b1fbd2b8af9c9401.patch b/debian/patches/d21664cce1db8debe2528f36b1fbd2b8af9c9401.patch new file mode 100644 index 00000000..920aac53 --- /dev/null +++ b/debian/patches/d21664cce1db8debe2528f36b1fbd2b8af9c9401.patch @@ -0,0 +1,43 @@ +From d21664cce1db8debe2528f36b1fbd2b8af9c9401 Mon Sep 17 00:00:00 2001 +From: serge-sans-paille +Date: Wed, 12 Feb 2020 08:57:19 +0100 +Subject: [PATCH] Fix integration of pass plugins with llvm dylib + +Call llvm_process_pass_plugin from clang when in standalone mode. + +Differential Revision: https://reviews.llvm.org/D74464 +--- + clang/CMakeLists.txt | 1 + + llvm/CMakeLists.txt | 3 +-- + 2 files changed, 2 insertions(+), 2 deletions(-) + +Index: llvm-toolchain-10-10.0.0~+rc5/clang/CMakeLists.txt +=================================================================== +--- llvm-toolchain-10-10.0.0~+rc5.orig/clang/CMakeLists.txt ++++ llvm-toolchain-10-10.0.0~+rc5/clang/CMakeLists.txt +@@ -864,6 +864,7 @@ + + if(CLANG_BUILT_STANDALONE) + llvm_distribution_add_targets() ++ process_llvm_pass_plugins() + endif() + + configure_file( +Index: llvm-toolchain-10-10.0.0~+rc5/llvm/CMakeLists.txt +=================================================================== +--- llvm-toolchain-10-10.0.0~+rc5.orig/llvm/CMakeLists.txt ++++ llvm-toolchain-10-10.0.0~+rc5/llvm/CMakeLists.txt +@@ -1067,6 +1067,7 @@ + # after all targets are created. + include(LLVMDistributionSupport) + llvm_distribution_add_targets() ++process_llvm_pass_plugins() + + # This allows us to deploy the Universal CRT DLLs by passing -DCMAKE_INSTALL_UCRT_LIBRARIES=ON to CMake + if (MSVC AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows" AND CMAKE_INSTALL_UCRT_LIBRARIES) +@@ -1091,5 +1092,3 @@ + if (LLVM_INCLUDE_UTILS AND LLVM_INCLUDE_TOOLS) + add_subdirectory(utils/llvm-locstats) + endif() +- +-process_llvm_pass_plugins() diff --git a/debian/patches/series b/debian/patches/series index 467b2eef..f727360b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -139,3 +139,4 @@ no-z3.patch python3-shebang.patch print-lldb-path.patch no-cgi.patch +d21664cce1db8debe2528f36b1fbd2b8af9c9401.patch