Skip to content

Commit

Permalink
Add -cmi-file to the ignored flags. Fixes #1703
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Nov 21, 2023
1 parent f4ecb5c commit fcc769f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/kernel/mconfig.ml
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ let ocaml_ignored_parametrized_flags = [
"-inline"; "-inline-prim-cost"; "-inline-toplevel"; "-intf";
"-intf_suffix"; "-intf-suffix"; "-o"; "-rounds"; "-runtime-variant";
"-unbox-closures-factor"; "-use-prims"; "-use_runtime"; "-use-runtime";
"-error-style"; "-dump-dir";
"-error-style"; "-dump-dir"; "-cmi-file";
]

let ocaml_warnings_spec ~error =
Expand Down
11 changes: 2 additions & 9 deletions tests/test-dirs/with-cmi.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@ Since OCaml 5.1 the compiler support the -cmi-file flag:

$ $OCAMLC -c -cmi-file main.cmi main.ml

FIXME: Merlin should ignore the -cmi-file flag
Merlin should ignore the -cmi-file flag
$ $MERLIN single errors -cmi-file main.cmi -filename main.ml <main.ml |
> jq '.value'
[
{
"type": "config",
"sub": [],
"valid": true,
"message": "unknown flag -cmi-file"
}
]
[]

0 comments on commit fcc769f

Please sign in to comment.