Move 4.03 minium version check for opaque to top level
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
parent
bde4943692
commit
1597b61df9
|
@ -17,7 +17,7 @@ module Gen(P : Install_rules.Params) = struct
|
||||||
let sctx = P.sctx
|
let sctx = P.sctx
|
||||||
let ctx = SC.context sctx
|
let ctx = SC.context sctx
|
||||||
|
|
||||||
let opaque = ctx.profile = "dev"
|
let opaque = ctx.profile = "dev" && ctx.version >= (4, 03, 0)
|
||||||
|
|
||||||
(* +-----------------------------------------------------------------+
|
(* +-----------------------------------------------------------------+
|
||||||
| Library stuff |
|
| Library stuff |
|
||||||
|
|
|
@ -58,7 +58,7 @@ let build_cm cctx ?sandbox ?(dynlink=true) ~dep_graphs ~cm_kind (m : Module.t) =
|
||||||
| Cmi | Cmo -> other_targets
|
| Cmi | Cmo -> other_targets
|
||||||
in
|
in
|
||||||
let dep_graph = Ml_kind.Dict.get dep_graphs ml_kind in
|
let dep_graph = Ml_kind.Dict.get dep_graphs ml_kind in
|
||||||
let opaque = CC.opaque cctx && ctx.version >= (4, 03, 0) in
|
let opaque = CC.opaque cctx in
|
||||||
let other_cm_files =
|
let other_cm_files =
|
||||||
Build.dyn_paths
|
Build.dyn_paths
|
||||||
(Ocamldep.Dep_graph.deps_of dep_graph m >>^ fun deps ->
|
(Ocamldep.Dep_graph.deps_of dep_graph m >>^ fun deps ->
|
||||||
|
|
Loading…
Reference in New Issue