Skip to content
Snippets Groups Projects
Commit 3701d699 authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Allan Blanchard
Browse files

[wp] add an option to pass extra configuration files to build Why3 config

parent 9799803b
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,8 @@
let cfg = lazy
begin
try Why3.Whyconf.init_config None
let extra_config = Wp_parameters.Why3ExtraConfig.get () in
try Why3.Whyconf.init_config ~extra_config None
with exn ->
Wp_parameters.abort "%a" Why3.Exn_printer.exn_printer exn
end
......
......@@ -983,6 +983,16 @@ module Why3Flags =
let help = "Additional options for Why3"
end)
let () = Parameter_customize.set_group wp_prover_options
let () = Parameter_customize.no_category ()
module Why3ExtraConfig =
String_list
(struct
let option_name = "-wp-why3-extra-config"
let arg_name = "file,..."
let help = "Additional config files for Why3"
end)
(* ------------------------------------------------------------------------ *)
(* --- PO Management --- *)
(* ------------------------------------------------------------------------ *)
......
......@@ -136,6 +136,7 @@ module Steps: Parameter_sig.Int
module Procs: Parameter_sig.Int
module ProofTrace: Parameter_sig.Bool
module Why3Flags: Parameter_sig.String_list
module Why3ExtraConfig: Parameter_sig.String_list
module Auto: Parameter_sig.String_list
module AutoDepth: Parameter_sig.Int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment