Skip to content

Commit

Permalink
Move 4.03 minium version check for opaque to top level
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
  • Loading branch information
rgrinberg committed Aug 2, 2018
1 parent bde4943 commit 1597b61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gen_rules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Gen(P : Install_rules.Params) = struct
let sctx = P.sctx
let ctx = SC.context sctx

let opaque = ctx.profile = "dev"
let opaque = ctx.profile = "dev" && ctx.version >= (4, 03, 0)

(* +-----------------------------------------------------------------+
| Library stuff |
Expand Down
2 changes: 1 addition & 1 deletion src/module_compilation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ let build_cm cctx ?sandbox ?(dynlink=true) ~dep_graphs ~cm_kind (m : Module.t) =
| Cmi | Cmo -> other_targets
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 =
Build.dyn_paths
(Ocamldep.Dep_graph.deps_of dep_graph m >>^ fun deps ->
Expand Down

0 comments on commit 1597b61

Please sign in to comment.