From 3c89b6c131e056dd7cf04a008191107e049bb928 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 31 Aug 2018 17:58:58 +0300 Subject: [PATCH] Require dune lang 1.2 for transitioning wraps Signed-off-by: Rudi Grinberg --- src/dune_file.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dune_file.ml b/src/dune_file.ml index 924d42a6..d2116fcf 100644 --- a/src/dune_file.ml +++ b/src/dune_file.ml @@ -868,7 +868,9 @@ module Library = struct sum [ "true", return (Simple true) ; "false", return (Simple false) - ; "transition", string >>| fun x -> Yes_with_transition x + ; "transition", + Syntax.since Stanza.syntax (1, 2) >>= fun () -> + string >>| fun x -> Yes_with_transition x ] let field = field "wrapped" ~default:(Simple true) dparse