aboutsummaryrefslogtreecommitdiff
path: root/kernel/nativelib.mli
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-04-16 20:54:07 +0200
committerEmilio Jesus Gallego Arias2019-04-16 20:54:07 +0200
commit3dc819375ceeb02f6f565b0d5d1fbf99752a6ffa (patch)
tree44c7beb990b1734704db3680dc2e87b10c5bd664 /kernel/nativelib.mli
parent4b9119d8090e366ecd2e803ad30a9dd839bc8ec9 (diff)
parent8af91e636038cb113bbd16f7f8225196190bb2d4 (diff)
Merge PR #9898: Better error message when OCaml compiler not found for native compute
Reviewed-by: ejgallego
Diffstat (limited to 'kernel/nativelib.mli')
-rw-r--r--kernel/nativelib.mli11
1 files changed, 8 insertions, 3 deletions
diff --git a/kernel/nativelib.mli b/kernel/nativelib.mli
index 25adcf224b..e113350368 100644
--- a/kernel/nativelib.mli
+++ b/kernel/nativelib.mli
@@ -21,9 +21,14 @@ val load_obj : (string -> unit) ref
val get_ml_filename : unit -> string * string
-val compile : string -> global list -> profile:bool -> bool * string
-
-val compile_library : Names.DirPath.t -> global list -> string -> bool
+(** [compile file code ~profile] will compile native [code] to [file],
+ and return the name of the object file; this name depends on
+ whether are in byte mode or not; file is expected to be .ml file *)
+val compile : string -> global list -> profile:bool -> string
+
+(** [compile_library lib code file] is similar to [compile file code]
+ but will perform some extra tweaks to handle [code] as a Coq lib. *)
+val compile_library : Names.DirPath.t -> global list -> string -> unit
val call_linker :
?fatal:bool -> string -> string -> code_location_updates option -> unit