aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joseph Kogut <joseph.kogut@gmail.com>2020-03-16 13:01:05 -0700
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-03-27 23:18:56 +0100
commit2b240f72cdeb336babba689c23bddc406c3acec2 (patch)
treeb5d2ab583fc00ea4d063cc7133072bbbbde92013
parent05e87df0bbde8665767f4fe0c9959540cd84b13d (diff)
downloadbuildroot-2b240f72cdeb336babba689c23bddc406c3acec2.tar.gz
buildroot-2b240f72cdeb336babba689c23bddc406c3acec2.tar.bz2
package/llvm: specify LLVM_ENABLE_BINDINGS=OFF
LLVM builds bindings for other languages such as Go and OCaml when the appropriate dependencies can be found. We currently don't support building these bindings in Buildroot, as they're currently unused by any package. Building these bindings was originally disabled by overriding the dependencies with values indicating that they were not found. Newer versions of LLVM no longer disable the OCaml bindings when overriding OCAMLFIND. Consequently, the build process attempts to install the bindings to the default location on the host of /usr/lib/ocaml/llvm, causing a permissions error and build failure. Additionally, LLVM has since added the variable LLVM_ENABLE_BINDINGS to control whether bindings are enabled, so we override that to disable the bindings. Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com> Reviewed-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit e6a1ee9a8aee9faecb8d1d1bdd8697d18c23b605) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/llvm/llvm.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/llvm/llvm.mk b/package/llvm/llvm.mk
index 2b2bcf336e..54fab6e724 100644
--- a/package/llvm/llvm.mk
+++ b/package/llvm/llvm.mk
@@ -193,7 +193,8 @@ LLVM_CONF_OPTS += -DLLVM_HOST_TRIPLE=$(GNU_TARGET_NAME)
# check preventively. Building the Go and OCaml bindings is yet unsupported.
HOST_LLVM_CONF_OPTS += \
-DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND \
- -DOCAMLFIND=OCAMLFIND-NOTFOUND
+ -DOCAMLFIND=OCAMLFIND-NOTFOUND \
+ -DLLVM_ENABLE_BINDINGS=OFF
# Builds a release host tablegen that gets used during the LLVM build.
HOST_LLVM_CONF_OPTS += -DLLVM_OPTIMIZED_TABLEGEN=ON