Mark ocamlfind as a hard-dependency

This commit is contained in:
Jeremie Dimino 2017-03-28 14:20:08 +01:00
parent 5cca590e34
commit 2a0156660b
1 changed files with 7 additions and 4 deletions

View File

@ -10,10 +10,13 @@ build: [
["ocaml" "bootstrap.ml"]
["./boot.exe" "-j" jobs]
]
depopts: [
# This dependency is here just to prevent a race condition
# as jbuilder calls `ocamlfind printconf path`
# when ocamlfind is present in the PATH
depends: [
# ocamlfind is not mandatory to build packages using
# jbuilder. However if it is present jbuilder will use it. Making
# it a hard-dependency avoids problems when there is a previous
# ocamlfind in the PATH. We make it a "build" depepdency even though
# it is only a runtime dependency so that reinstalling ocamlfind
# doesn't resintall jbuilder
"ocamlfind" {build}
]
available: [ ocaml-version >= "4.02.3" ]