Skip to content

Commit 21ec4cf

Browse files
authored
Add missing ocamlc flags to the ignore list (#1556)
from voodoos/ignore-new-compiler-flags
2 parents 48b2981 + 36d682c commit 21ec4cf

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ unreleased
66
- Update internal typer to match OCaml 4.14.1 release. (#1557)
77
- Improve type-enclosing behaviour when used on records' labels (#1565,
88
fixes #1564)
9+
- Restore compatibility with some OCaml compiler's debug flags that were
10+
incorrectly rejected by Merlin. (#1556)
911

1012
merlin 4.7
1113
==========

src/kernel/mconfig.ml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,20 +135,20 @@ module Verbosity = struct
135135

136136
let default = Lvl 0
137137

138-
let to_int t ~for_smart =
139-
match t with
138+
let to_int t ~for_smart =
139+
match t with
140140
| Smart -> for_smart
141141
| Lvl v -> v
142142

143143
let param_spec = "\"smart\" | <integer>"
144144

145-
let of_string = function
146-
| "smart" -> Smart
145+
let of_string = function
146+
| "smart" -> Smart
147147
| maybe_int ->
148148
try Lvl (int_of_string maybe_int)
149149
with _ -> invalid_arg ("argument should be: " ^ param_spec)
150150

151-
let to_string = function
151+
let to_string = function
152152
| Smart -> "smart"
153153
| Lvl v -> "lvl " ^ (string_of_int v)
154154

@@ -368,7 +368,7 @@ let query_flags = [
368368
"-verbosity",
369369
Marg.param Verbosity.param_spec (fun verbosity query ->
370370
let verbosity =
371-
Verbosity.of_string verbosity
371+
Verbosity.of_string verbosity
372372
in
373373
{query with verbosity}),
374374
"\"smart\" | <integer> Verbosity determines the number of \
@@ -392,7 +392,7 @@ let ocaml_ignored_flags = [
392392
"-c"; "-compact"; "-compat-32"; "-config"; "-custom"; "-dalloc";
393393
"-dclambda"; "-dcmm"; "-dcombine"; "-dcse"; "-dflambda";
394394
"-dflambda-no-invariants"; "-dflambda-verbose"; "-dinstr"; "-dinterf";
395-
"-dlambda"; "-dlinear"; "-dlive"; "-dparsetree"; "-dprefer";
395+
"-dlambda"; "-dlinear"; "-dlive"; "-dparsetree"; "-dprefer"; "-dshape";
396396
"-drawclambda"; "-drawflambda"; "-drawlambda"; "-dreload"; "-dscheduling";
397397
"-dsel"; "-dsource"; "-dspill"; "-dsplit"; "-dstartup"; "-dtimings";
398398
"-dtypedtree"; "-dtypes"; "-dump-pass"; "-fno-PIC"; "-fPIC"; "-g"; "-i";
@@ -415,7 +415,7 @@ let ocaml_ignored_parametrized_flags = [
415415
"-inline"; "-inline-prim-cost"; "-inline-toplevel"; "-intf";
416416
"-intf_suffix"; "-intf-suffix"; "-o"; "-rounds"; "-runtime-variant";
417417
"-unbox-closures-factor"; "-use-prims"; "-use_runtime"; "-use-runtime";
418-
"-error-style";
418+
"-error-style"; "-dump-dir";
419419
]
420420

421421
let ocaml_warnings_spec ~error =

0 commit comments

Comments
 (0)