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.