diff options
Diffstat (limited to 'scripts/coqc.ml')
-rw-r--r-- | scripts/coqc.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/coqc.ml b/scripts/coqc.ml index cbcb6b4c..41fb0803 100644 --- a/scripts/coqc.ml +++ b/scripts/coqc.ml @@ -158,13 +158,13 @@ let parse_args () = | "-unboxed-values" | "-unboxed-definitions" | "-draw-vm-instr" as o) :: rem -> parse (cfiles,o::args) rem - | ("-v"|"--version") :: _ -> - Usage.version () | "-where" :: _ -> - let coqlib = + let coqlib = try Sys.getenv "COQLIB" with Not_found -> Coq_config.coqlib in print_endline coqlib; exit 0 + | ("-v"|"--version") :: _ -> + Usage.version () | f :: rem -> if Sys.file_exists f then parse (f::cfiles,args) rem |