[PATCH] D42026: Allow the llvm bindings to be disabled
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 20 01:42:02 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL332816: [cmake] Add a switch to enable/disable bindings. (authored by vvassilev, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D42026?vs=129754&id=147702#toc
Repository:
rL LLVM
https://reviews.llvm.org/D42026
Files:
llvm/trunk/CMakeLists.txt
llvm/trunk/cmake/config-ix.cmake
Index: llvm/trunk/cmake/config-ix.cmake
===================================================================
--- llvm/trunk/cmake/config-ix.cmake
+++ llvm/trunk/cmake/config-ix.cmake
@@ -511,10 +511,10 @@
endif()
set(LLVM_BINDINGS "")
-if(WIN32)
+find_program(GO_EXECUTABLE NAMES go DOC "go executable")
+if(WIN32 OR NOT LLVM_ENABLE_BINDINGS)
message(STATUS "Go bindings disabled.")
else()
- find_program(GO_EXECUTABLE NAMES go DOC "go executable")
if(GO_EXECUTABLE STREQUAL "GO_EXECUTABLE-NOTFOUND")
message(STATUS "Go bindings disabled.")
else()
@@ -554,7 +554,7 @@
# Keep the version requirements in sync with bindings/ocaml/README.txt.
include(FindOCaml)
include(AddOCaml)
-if(WIN32)
+if(WIN32 OR NOT LLVM_ENABLE_BINDINGS)
message(STATUS "OCaml bindings disabled.")
else()
find_package(OCaml)
Index: llvm/trunk/CMakeLists.txt
===================================================================
--- llvm/trunk/CMakeLists.txt
+++ llvm/trunk/CMakeLists.txt
@@ -520,6 +520,7 @@
option (LLVM_ENABLE_DOXYGEN "Use doxygen to generate llvm API documentation." OFF)
option (LLVM_ENABLE_SPHINX "Use Sphinx to generate llvm documentation." OFF)
option (LLVM_ENABLE_OCAMLDOC "Build OCaml bindings documentation." ON)
+option (LLVM_ENABLE_BINDINGS "Build bindings." ON)
set(LLVM_INSTALL_DOXYGEN_HTML_DIR "share/doc/llvm/doxygen-html"
CACHE STRING "Doxygen-generated HTML documentation install directory")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42026.147702.patch
Type: text/x-patch
Size: 1436 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180520/ec72555b/attachment.bin>
More information about the llvm-commits
mailing list