diff options
| author | Gaëtan Gilbert | 2019-03-01 13:36:05 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2019-03-01 13:38:40 +0100 |
| commit | 06fcd91ec5d3d9382cacb6a5b92362e2743e81a7 (patch) | |
| tree | 04dbe6ae3f8cbc40db90a018ed3fc0a1acae3910 /dune | |
| parent | ed5685a2afaa9c429d1f16950317363d9b0bc1a8 (diff) | |
Dune: remove -short-paths flag.
This makes it so that
~~~ocaml
module M = struct
type a
let f (x:a) = x
end
type b = M.a
let _ = M.f 2
~~~
We get
Error: This expression has type int but an expression was expected of type M.a
instead of
Error: This expression has type int but an expression was expected of type b
We want this for Coq since we have numerous aliases in this pattern,
eg module_ident = Id.t in names.
See https://github.com/ocaml/dune/issues/1794 https://caml.inria.fr/mantis/view.php?id=7911
Diffstat (limited to 'dune')
| -rw-r--r-- | dune | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,12 +1,12 @@ ; Default flags for all Coq libraries. (env - (dev (flags :standard -rectypes -w -9-27+40+60)) + (dev (flags :standard -rectypes -w -9-27+40+60 \ -short-paths)) (release (flags :standard -rectypes) (ocamlopt_flags -O3 -unbox-closures)) (ireport (flags :standard -rectypes -w -9-27-40+60) (ocamlopt_flags :standard -O3 -unbox-closures -inlining-report)) (ocaml409 - (flags :standard -strict-sequence -strict-formats -short-paths -keep-locs -rectypes -w -9-27+40+60 -warn-error -5 -alert --deprecated))) + (flags :standard -strict-sequence -strict-formats -keep-locs -rectypes -w -9-27+40+60 -warn-error -5 -alert --deprecated))) ; The _ profile could help factoring the above, however it doesn't ; seem to work like we'd expect/like: |
