File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -520,6 +520,7 @@ option (LLVM_INCLUDE_DOCS "Generate build targets for llvm documentation." ON)
520
520
option (LLVM_ENABLE_DOXYGEN "Use doxygen to generate llvm API documentation." OFF )
521
521
option (LLVM_ENABLE_SPHINX "Use Sphinx to generate llvm documentation." OFF )
522
522
option (LLVM_ENABLE_OCAMLDOC "Build OCaml bindings documentation." ON )
523
+ option (LLVM_ENABLE_BINDINGS "Build bindings." ON )
523
524
524
525
set (LLVM_INSTALL_DOXYGEN_HTML_DIR "share/doc/llvm/doxygen-html"
525
526
CACHE STRING "Doxygen-generated HTML documentation install directory" )
Original file line number Diff line number Diff line change @@ -511,10 +511,10 @@ else()
511
511
endif ()
512
512
513
513
set (LLVM_BINDINGS "" )
514
- if (WIN32 )
514
+ find_program (GO_EXECUTABLE NAMES go DOC "go executable" )
515
+ if (WIN32 OR NOT LLVM_ENABLE_BINDINGS)
515
516
message (STATUS "Go bindings disabled." )
516
517
else ()
517
- find_program (GO_EXECUTABLE NAMES go DOC "go executable" )
518
518
if (GO_EXECUTABLE STREQUAL "GO_EXECUTABLE-NOTFOUND" )
519
519
message (STATUS "Go bindings disabled." )
520
520
else ()
@@ -554,7 +554,7 @@ endif()
554
554
# Keep the version requirements in sync with bindings/ocaml/README.txt.
555
555
include (FindOCaml)
556
556
include (AddOCaml)
557
- if (WIN32 )
557
+ if (WIN32 OR NOT LLVM_ENABLE_BINDINGS )
558
558
message (STATUS "OCaml bindings disabled." )
559
559
else ()
560
560
find_package (OCaml)
You can’t perform that action at this time.
0 commit comments