diff options
author | Tom Repetti <trepetti@cs.columbia.edu> | 2022-10-27 13:35:13 -0400 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2022-10-28 13:14:42 +0200 |
commit | 3453f5713ad1c79c4ae10671dcaf30241b102249 (patch) | |
tree | a7ba755f717f7d828a7f85b065a9109e4fda5a01 /pkgs/development/ocaml-modules | |
parent | 3298100109a8b558d9267ff1fe631a9b6fb25467 (diff) |
ocamlPackages.llvm: fix CMake location for versions >= 13.0.0
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/llvm/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/llvm/default.nix b/pkgs/development/ocaml-modules/llvm/default.nix index 93824894455cc..948d326d65945 100644 --- a/pkgs/development/ocaml-modules/llvm/default.nix +++ b/pkgs/development/ocaml-modules/llvm/default.nix @@ -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" |