ocamlPackages.llvm: fix CMake location for versions >= 13.0.0

This commit is contained in:
Tom Repetti 2022-10-27 13:35:13 -04:00 committed by Vincent Laporte
parent 3298100109
commit 3453f5713a

View file

@ -14,6 +14,10 @@ stdenv.mkDerivation {
strictDeps = true;
preConfigure = lib.optionalString (lib.versionAtLeast version "13.0.0") ''
cd llvm
'';
cmakeFlags = [
"-DBUILD_SHARED_LIBS=YES" # fixes bytecode builds
"-DLLVM_OCAML_OUT_OF_TREE=TRUE"