diff options
| author | Gaëtan Gilbert | 2019-06-11 11:34:16 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2019-06-12 14:17:55 +0200 |
| commit | 00fcbf38dcd127e3d2d4f748f215787855abd609 (patch) | |
| tree | fabcbdbe58c7eae35148ad28153e4a96590bff45 /kernel/nativelib.mli | |
| parent | 793a442d240c22f99591388ad31e33fbaef96fb0 (diff) | |
Remove dependency of native_compile on global env for symbols
Instead we get the symbols from a Environ.env.
We make them accessible to the produced code through a reference
managed by the kernel, similar to the return values except inverting
when it's written and when it's read.
Diffstat (limited to 'kernel/nativelib.mli')
| -rw-r--r-- | kernel/nativelib.mli | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/kernel/nativelib.mli b/kernel/nativelib.mli index e113350368..489f443566 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. *) |
