[PATCH] D42694: [CMAKE] Add ability to disable bindings

Matt Ickstadt via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 09:56:57 PST 2018


mattico created this revision.
Herald added subscribers: hintonda, mgorny.

https://bugs.llvm.org/show_bug.cgi?id=36137

Building the Go and OCaml bindings occasionally causes build errors for downstream users. When these bindings are not used it is preferable to disable building them, rather than work around the build errors. The autoconf build system provided `--disable-bindings`, but there is no such option in the CMake system.

This commit adds this option, as `LLVM_BUILD_BINDINGS:BOOL`. Do let me know if some other configuration would be preferable. I made another version of this patch using an option like `LLVM_BINDINGS_TO_BUILD:STRING`, which was a much larger change.

I am not sure who to add as a reviewer, please suggest someone if you can.


Repository:
  rL LLVM

https://reviews.llvm.org/D42694

Files:
  CMakeLists.txt
  cmake/config-ix.cmake
  docs/CMake.rst

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42694.131992.patch
Type: text/x-patch
Size: 5139 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180130/29449a9b/attachment-0001.bin>


More information about the llvm-commits mailing list