File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -854,11 +854,16 @@ let () =
854
854
+-----------------------------------------------------------------+ *)
855
855
856
856
#if OCAML_VERSION > = (4 , 08 , 0 )
857
- let get_load_path () = Load_path. get_paths ()
858
- let set_load_path path = Load_path. init path
857
+ let get_load_path () = Load_path. get_paths ()
858
+ #if OCAML_VERSION > = (5 , 0 , 0 )
859
+ let set_load_path path =
860
+ Load_path. init path ~auto_include: Load_path. no_auto_include
859
861
#else
860
- let get_load_path () = ! Config. load_path
861
- let set_load_path path = Config. load_path := path
862
+ let set_load_path path = Load_path. init path
863
+ #endif
864
+ #else
865
+ let get_load_path () = ! Config. load_path
866
+ let set_load_path path = Config. load_path := path
862
867
#endif
863
868
864
869
(* +-----------------------------------------------------------------+
Original file line number Diff line number Diff line change @@ -1371,7 +1371,11 @@ let emacs_mode = ref false
1371
1371
let preload = ref []
1372
1372
1373
1373
let prepare () =
1374
+ #if OCAML_VERSION > = (5 , 0 , 0 )
1375
+ Toploop. set_paths ~auto_include: Load_path. no_auto_include () ;
1376
+ #else
1374
1377
Toploop. set_paths () ;
1378
+ #endif
1375
1379
try
1376
1380
let ok =
1377
1381
List. for_all
You can’t perform that action at this time.
0 commit comments