diff options
Diffstat (limited to 'library/loadpath.ml')
-rw-r--r-- | library/loadpath.ml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/library/loadpath.ml b/library/loadpath.ml index 44b53c09a..315cbf96e 100644 --- a/library/loadpath.ml +++ b/library/loadpath.ml @@ -20,12 +20,18 @@ type t = { path_is_root : bool; } +let load_paths = ref ([] : t list) + +let () = Summary.declare_summary "LOADPATHS" { + Summary.freeze_function = (fun () -> !load_paths); + Summary.unfreeze_function = (fun l -> load_paths := l); + Summary.init_function = (fun () -> load_paths := []); +} + let logical p = p.path_logical let physical p = p.path_physical -let load_paths = ref ([] : t list) - let get_load_paths () = !load_paths let get_paths () = List.map physical !load_paths |