From 200fbd0cec4709bd1fb5f7a32e1c40270e343b5a Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Mon, 2 Jul 2018 17:02:16 +0200 Subject: [envars] honor env variable COQLIB --- lib/envars.ml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/envars.ml b/lib/envars.ml index be82bfe9b..3ee0c7106 100644 --- a/lib/envars.ml +++ b/lib/envars.ml @@ -110,6 +110,7 @@ let check_file_else ~dir ~file oth = if Sys.file_exists (path / file) then path else oth () let guess_coqlib fail = + getenv_else "COQLIB" (fun () -> let prelude = "theories/Init/Prelude.vo" in check_file_else ~dir:Coq_config.coqlibsuffix ~file:prelude (fun () -> @@ -117,6 +118,7 @@ let guess_coqlib fail = then Coq_config.coqlib else fail "cannot guess a path for Coq libraries; please use -coqlib option") + ) (** coqlib is now computed once during coqtop initialization *) -- cgit v1.2.3