From 28493ee08966cfe7ed371a4eb789d25d5e1691c0 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Jan 20 2023 19:35:39 +0000 Subject: Manually apply https://reviews.llvm.org/D141581 --- diff --git a/D141581.diff b/D141581.diff new file mode 100644 index 0000000..c227e22 --- /dev/null +++ b/D141581.diff @@ -0,0 +1,25 @@ +diff --git a/clang/lib/Basic/CMakeLists.txt b/clang/lib/Basic/CMakeLists.txt +--- a/clang/lib/Basic/CMakeLists.txt ++++ b/clang/lib/Basic/CMakeLists.txt +@@ -110,7 +110,7 @@ + + DEPENDS + omp_gen +- RISCVTargetParserTableGen ++ LLVMTargetParser + ) + + target_link_libraries(clangBasic +diff --git a/clang/lib/Driver/CMakeLists.txt b/clang/lib/Driver/CMakeLists.txt +--- a/clang/lib/Driver/CMakeLists.txt ++++ b/clang/lib/Driver/CMakeLists.txt +@@ -93,7 +93,7 @@ + + DEPENDS + ClangDriverOptions +- RISCVTargetParserTableGen ++ LLVMTargetParser + + LINK_LIBS + clangBasic + diff --git a/clang.spec b/clang.spec index 1aea86a..e6baa0c 100644 --- a/clang.spec +++ b/clang.spec @@ -89,6 +89,10 @@ Patch4: 0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch Patch5: 0001-PATCH-Produce-DWARF4-by-default.patch Patch6: 0001-Take-into-account-Fedora-Specific-install-dir-for-li.patch +# Make clangBasic and clangDriver depend on LLVMTargetParser +# See https://reviews.llvm.org/D141581 +Patch7: D141581.diff + %if %{without compat_build} # Patches for clang-tools-extra # See https://reviews.llvm.org/D120301