aboutsummaryrefslogtreecommitdiff
path: root/kernel/nativelib.mli
diff options
context:
space:
mode:
authorMaxime Dénès2019-07-04 09:11:41 +0200
committerMaxime Dénès2019-07-04 09:11:41 +0200
commita661aadbc7120b93ccf8507c0173ffd6cfa3a0f8 (patch)
tree17ff6655ac87b3862eaa0857d28c4cc1ba46bc23 /kernel/nativelib.mli
parentd1965ba584589a528cbb6fe98bbe489137691e02 (diff)
parent00fcbf38dcd127e3d2d4f748f215787855abd609 (diff)
Merge PR #10359: Remove dependency of native_compile on global env for symbols
Reviewed-by: maximedenes Reviewed-by: ppedrot
Diffstat (limited to 'kernel/nativelib.mli')
-rw-r--r--kernel/nativelib.mli21
1 files changed, 17 insertions, 4 deletions
diff --git a/kernel/nativelib.mli b/kernel/nativelib.mli
index 194efecd9a..52d18acca6 100644
--- a/kernel/nativelib.mli
+++ b/kernel/nativelib.mli
@@ -30,10 +30,23 @@ val compile : string -> global list -> profile:bool -> string
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
-
-val link_library : prefix:string -> dirname:string -> basename:string -> unit
+val call_linker
+ : ?fatal:bool
+ -> Environ.env
+ -> prefix:string
+ -> string
+ -> code_location_updates option
+ -> unit
+
+val link_library
+ : Environ.env
+ -> prefix:string
+ -> dirname:string
+ -> basename:string
+ -> unit
val rt1 : Nativevalues.t ref
val rt2 : Nativevalues.t ref
+
+val get_library_native_symbols : Names.DirPath.t -> Nativevalues.symbols
+(** Strictly for usage by code produced by native compute. *)