diff options
Diffstat (limited to 'lib/envars.ml')
-rw-r--r-- | lib/envars.ml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/envars.ml b/lib/envars.ml index 71525f055..1190e7a36 100644 --- a/lib/envars.ml +++ b/lib/envars.ml @@ -185,7 +185,7 @@ let camlp4lib () = else let camlp4bin = camlp4bin () in let com = (Filename.concat camlp4bin Coq_config.camlp4) ^ " -where" in - let _,res = CUnix.run_command (fun x -> x) (fun _ -> ()) com in - Util.strip res - - + let ex,res = CUnix.run_command (fun x -> x) (fun _ -> ()) com in + match ex with + |Unix.WEXITED 0 -> Util.strip res + |_ -> "/dev/null" |