diff --git a/debian/changelog b/debian/changelog index f6efbb3f..2d30166b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -274,9 +274,9 @@ llvm-toolchain-snapshot (1:14~++20210715093511+afc760ef3527-1~exp2) unstable; ur llvm-toolchain-13 (1:13.0.1~+rc1-1~exp4) experimental; urgency=medium - * Fix the cmake with the mlir introducing + * Fix the cmake file with the mlir introducing - -- Sylvestre Ledru Mon, 03 Jan 2022 14:21:10 +0100 + -- Sylvestre Ledru Thu, 06 Jan 2022 14:30:59 +0100 llvm-toolchain-13 (1:13.0.1~+rc1-1~exp3) experimental; urgency=medium diff --git a/debian/rules b/debian/rules index 14953815..45af0acd 100755 --- a/debian/rules +++ b/debian/rules @@ -810,7 +810,10 @@ endif rm -f $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/include/llvm/Support/LICENSE.TXT # Disable CMake's package validation checks for target files that we may remove. - sed -i '/_IMPORT_CHECK_TARGETS \(Polly\|sancov\|llvm-omp-device-info\|mlir-tblgen\|omptarget\)/ {s|^|#|}' $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/cmake/llvm/LLVMExports-*.cmake + sed -i '/_IMPORT_CHECK_TARGETS \(Polly\|sancov\|llvm-omp-device-info\|omptarget\)/ {s|^|#|}' $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/cmake/llvm/LLVMExports-*.cmake + +# Also disable mlir-* checks in the cmake + sed -i '/_IMPORT_CHECK_TARGETS \(mlir-\)/ {s|^|#|}' $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/cmake/llvm/LLVMExports-*.cmake # Disable CMake's package validation checks for binaries that may not be installed sed -i 's|.*_IMPORT_CHECK_FILES_FOR_.*/bin/.*)|#&|' $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/cmake/clang/ClangTargets-*.cmake