Skip to content

Commit

Permalink
Default to the parent node
Browse files Browse the repository at this point in the history
  • Loading branch information
mlasson committed Jul 22, 2019
1 parent 865fc73 commit b8faaa3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/env_node.ml
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,21 @@ let rec ocaml_flags t ~profile ~expander =
t.ocaml_flags <- Some flags;
flags

let inline_tests t ~profile =
let rec inline_tests t ~profile =
match t.inline_tests with
| Some x -> x
| None ->
let state : Dune_env.Stanza.Inline_tests.t =
match find_config t ~profile with
| None | Some {inline_tests = None; _} ->
if profile = "release" then
Disabled
else
Enabled
begin match t.inherit_from with
| None ->
if profile = "release" then
Disabled
else
Enabled
| Some (lazy t) -> inline_tests t ~profile
end
| Some {inline_tests = Some s; _} -> s
in
t.inline_tests <- Some state;
Expand Down

0 comments on commit b8faaa3

Please sign in to comment.