This is an archive of the discontinued LLVM Phabricator instance.

[CMAKE] Add ability to disable bindings
AbandonedPublic

Authored by mattico on Jan 30 2018, 9:55 AM.

Details

Reviewers
None
Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

mattico created this revision.Jan 30 2018, 9:55 AM
mattico abandoned this revision.Jan 30 2018, 10:00 AM

Of course, I only notice the related revision after posting this one :)

See https://reviews.llvm.org/D42026