rustc/rustc-1.25.0-disable-llvm-ocaml-binding.patch

34 lines
1.2 KiB
Diff

--- src/llvm/cmake/config-ix.cmake 2017-12-14 22:25:15.988551420 +0100
+++ src/llvm/cmake/config-ix.cmake.no_llvm_ocaml_bindings 2017-12-14 22:35:08.087110357 +0100
@@ -564,29 +564,6 @@
# Keep the version requirements in sync with bindings/ocaml/README.txt.
include(FindOCaml)
include(AddOCaml)
-if(WIN32)
- message(STATUS "OCaml bindings disabled.")
-else()
- find_package(OCaml)
- if( NOT OCAML_FOUND )
- message(STATUS "OCaml bindings disabled.")
- else()
- if( OCAML_VERSION VERSION_LESS "4.00.0" )
- message(STATUS "OCaml bindings disabled, need OCaml >=4.00.0.")
- else()
- find_ocamlfind_package(ctypes VERSION 0.4 OPTIONAL)
- if( HAVE_OCAML_CTYPES )
- message(STATUS "OCaml bindings enabled.")
- find_ocamlfind_package(oUnit VERSION 2 OPTIONAL)
- set(LLVM_BINDINGS "${LLVM_BINDINGS} ocaml")
-
- set(LLVM_OCAML_INSTALL_PATH "${OCAML_STDLIB_PATH}" CACHE STRING
- "Install directory for LLVM OCaml packages")
- else()
- message(STATUS "OCaml bindings disabled, need ctypes >=0.4.")
- endif()
- endif()
- endif()
-endif()
+message(STATUS "OCaml bindings disabled.")
string(REPLACE " " ";" LLVM_BINDINGS_LIST "${LLVM_BINDINGS}")