commit 4a967aa9b123408cfcc2253d91f5dc8c528821f3
Author: Jan Palus <at...@pld-linux.org>
Date:   Mon Nov 8 11:33:44 2021 +0100

    add support for enabling bindings selectively

 llvm-selective_bindings.patch | 20 ++++++++++++++++++++
 llvm.spec                     |  2 ++
 2 files changed, 22 insertions(+)
---
diff --git a/llvm.spec b/llvm.spec
index 1f88496..bdf77b7 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -92,6 +92,7 @@ Patch4:               cmake-buildtype.patch
 Patch5:                %{name}-ocaml-shared.patch
 Patch6:                %{name}-flang.patch
 Patch7:                llvm12-build_fixes.patch
+Patch8:                %{name}-selective_bindings.patch
 URL:           http://llvm.org/
 BuildRequires: bash
 BuildRequires: binutils-devel
@@ -596,6 +597,7 @@ Integracja narzędzi Clang do formatowania i zmiany nazw z 
Vimem.
 %patch6 -p1
 %endif
 %patch7 -p1
+%patch8 -p1
 
 grep -rl /usr/bin/env projects tools utils | xargs sed -i -e '1{
        s,^#!.*bin/env python,#!%{__python3},
diff --git a/llvm-selective_bindings.patch b/llvm-selective_bindings.patch
new file mode 100644
index 0000000..8228e46
--- /dev/null
+++ b/llvm-selective_bindings.patch
@@ -0,0 +1,20 @@
+--- llvm-13.0.0.src/cmake/config-ix.cmake.orig 2021-09-24 18:18:10.000000000 
+0200
++++ llvm-13.0.0.src/cmake/config-ix.cmake      2021-11-08 11:27:55.475562698 
+0100
+@@ -569,7 +569,7 @@
+ 
+ set(LLVM_BINDINGS "")
+ find_program(GO_EXECUTABLE NAMES go DOC "go executable")
+-if(WIN32 OR NOT LLVM_ENABLE_BINDINGS)
++if(WIN32 OR NOT LLVM_ENABLE_BINDINGS OR (DEFINED LLVM_BINDINGS_LIST AND NOT 
"go" IN_LIST LLVM_BINDINGS_LIST))
+   message(STATUS "Go bindings disabled.")
+ else()
+   if(GO_EXECUTABLE STREQUAL "GO_EXECUTABLE-NOTFOUND")
+@@ -625,7 +625,7 @@
+ # Keep the version requirements in sync with bindings/ocaml/README.txt.
+ include(FindOCaml)
+ include(AddOCaml)
+-if(WIN32 OR NOT LLVM_ENABLE_BINDINGS)
++if(WIN32 OR NOT LLVM_ENABLE_BINDINGS OR (DEFINED LLVM_BINDINGS_LIST AND NOT 
"ocaml" IN_LIST LLVM_BINDINGS_LIST))
+   message(STATUS "OCaml bindings disabled.")
+ else()
+   find_package(OCaml)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/4a967aa9b123408cfcc2253d91f5dc8c528821f3

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to