Skip to content

Commit

Permalink
Document Compilation_context.opaque
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Apr 22, 2020
1 parent 9df79df commit 7835bcb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/dune/compilation_context.mli
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ open Import
associated to each library, executable and executables stanza. *)
type t

(** Sets whether [-opaque] is going to be used during compilation. This
constructs a different dependency graph for native executables. In
partricular, we can omit dependency on .cmx files. For mli only modules,
this setting is ignored and is always set when it's available. As there are
no .cmx files for such modules anyway *)
type opaque =
| Explicit of bool
| Explicit of bool (** Set directly by the caller *)
| Inherit_from_settings
(** Determined from the version of OCaml and the profile *)

(** Create a compilation context. *)
val create :
Expand Down

0 comments on commit 7835bcb

Please sign in to comment.