Skip to content

Commit

Permalink
[coq] Add "-q" to default flags.
Browse files Browse the repository at this point in the history
Fixes ocaml#3924 , and a bug where `:standard` was not properly set in
theory flags, as they should be inherited from the ones set in the
profile; thanks Rudi Gringerb.

Signed-off-by: Emilio Jesus Gallego Arias <[email protected]>
  • Loading branch information
ejgallego committed Nov 12, 2020
1 parent d8020d6 commit 2fdbc14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ Unreleased
- `dune describe` now also includes information about executables in addition to
that of libraries. (#3892, #3895, @nojb)

- [coq] Add `-q` flag to default `coqc` flags , fixes #3924, (#3931 , @ejgallego)

2.7.1 (2/09/2020)
-----------------

Expand Down
15 changes: 7 additions & 8 deletions src/dune_rules/coq_rules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,14 @@ module Context = struct
let dir = Path.build (snd t.coqc) in
Command.run ~dir ?stdout_to (fst t.coqc) args

let standard_coq_flags = Build.return [ "-q" ]

let coq_flags t =
Build.(
map ~f:List.concat
(all
[ Expander.expand_and_eval_set t.expander t.profile_flags
~standard:(Build.return [])
; Expander.expand_and_eval_set t.expander t.buildable.flags
~standard:(Build.return [])
]))
let standard = standard_coq_flags in
let standard =
Expander.expand_and_eval_set t.expander t.profile_flags ~standard
in
Expander.expand_and_eval_set t.expander t.buildable.flags ~standard

let theories_flags =
let setup_theory_flag lib =
Expand Down

0 comments on commit 2fdbc14

Please sign in to comment.