Fix the cmake file with the mlir introducing

This commit is contained in:
Sylvestre Ledru 2022-01-06 14:31:24 +01:00
parent a13a744dde
commit 68e5f7c01b
2 changed files with 6 additions and 3 deletions

4
debian/changelog vendored
View File

@ -1,8 +1,8 @@
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 <sylvestre@debian.org> Mon, 03 Jan 2022 14:21:10 +0100
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 06 Jan 2022 14:30:59 +0100
llvm-toolchain-13 (1:13.0.1~+rc1-1~exp3) experimental; urgency=medium

5
debian/rules vendored
View File

@ -788,7 +788,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