From 83a3ca8e0997794c8812230ce24766f07545d168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 26 Dec 2025 00:34:06 +0200 Subject: [PATCH] build-llvm: Disable LLVM_ENABLE_BINDINGS According to https://github.com/mstorsjo/llvm-mingw/issues/533, if OCaml support is detected and the LLVM OCaml bindings are built, they are attempted to be installed in a path that require root access. --- build-llvm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build-llvm.sh b/build-llvm.sh index 9bd9b35..3ca95ca 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -401,6 +401,7 @@ cmake \ -DCMAKE_BUILD_TYPE=Release \ -DLLVM_ENABLE_ASSERTIONS=$ASSERTS \ -DLLVM_ENABLE_PROJECTS="$PROJECTS" \ + -DLLVM_ENABLE_BINDINGS=OFF \ -DLLVM_TARGETS_TO_BUILD="ARM;AArch64;X86;NVPTX" \ -DLLVM_INSTALL_TOOLCHAIN_ONLY=$TOOLCHAIN_ONLY \ -DLLVM_LINK_LLVM_DYLIB=$LINK_DYLIB \