aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorcoqbot-app[bot]2021-01-27 08:34:33 +0000
committerGitHub2021-01-27 08:34:33 +0000
commit0c185094d40d10dc43f1432ef708a329fae25751 (patch)
treef322ca666b1beb02e7a9d4d8195dc434f6593e4c /toplevel
parent7308d118879dcc603c45008c3d106ba3688f4e2b (diff)
parent028342741eee445c44db2661b1c246623c96e01a (diff)
Merge PR #13785: [coqargs] use the standard option injection system for -w
Reviewed-by: SkySkimmer Ack-by: Zimmi48
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/coqargs.ml8
1 files changed, 2 insertions, 6 deletions
diff --git a/toplevel/coqargs.ml b/toplevel/coqargs.ml
index fbf3b4873b..c114c43e26 100644
--- a/toplevel/coqargs.ml
+++ b/toplevel/coqargs.ml
@@ -464,12 +464,8 @@ let parse_args ~help ~init arglist : t * string list =
|"-w" | "-W" ->
let w = next () in
- if w = "none" then
- (CWarnings.set_flags w; oval)
- else
- let w = CWarnings.get_flags () ^ "," ^ w in
- CWarnings.set_flags (CWarnings.normalize_flags_string w);
- oval
+ if w = "none" then add_set_option oval ["Warnings"] (Stm.OptionSet(Some w))
+ else add_set_option oval ["Warnings"] (Stm.OptionAppend w)
|"-bytecode-compiler" ->
{ oval with config = { oval.config with enable_VM = get_bool opt (next ()) }}