From 08b0afb40bad4c45daf3dec61af5c52cd1687e70 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 924d42a6cc28..d2116fcf4bf0 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