@@ -25,6 +25,7 @@ let coq_syntax =
25
25
; ((0 , 3 ), `Since (2 , 8 ))
26
26
; ((0 , 4 ), `Since (3 , 3 ))
27
27
; ((0 , 5 ), `Since (3 , 4 ))
28
+ ; ((0 , 6 ), `Since (3 , 5 ))
28
29
]
29
30
30
31
module Buildable = struct
@@ -34,6 +35,7 @@ module Buildable = struct
34
35
; mode : Loc .t * Coq_mode .t
35
36
; plugins : (Loc .t * Lib_name .t ) list (* * ocaml libraries *)
36
37
; theories : (Loc .t * Coq_lib_name .t ) list (* * coq libraries *)
38
+ ; stdlib : bool
37
39
; loc : Loc .t
38
40
}
39
41
@@ -71,9 +73,13 @@ module Buildable = struct
71
73
field " theories"
72
74
(Dune_lang.Syntax. since coq_syntax (0 , 2 ) >>> repeat Coq_lib_name. decode)
73
75
~default: []
76
+ and + stdlib =
77
+ field " stdlib"
78
+ (Dune_lang.Syntax. since coq_syntax (0 , 6 ) >>> enum [" yes" , true ; " no" , false ])
79
+ ~default: true
74
80
in
75
81
let plugins = merge_plugins_libraries ~plugins ~libraries in
76
- { flags; mode; coq_lang_version; plugins; theories; loc }
82
+ { flags; mode; coq_lang_version; plugins; theories; stdlib; loc }
77
83
end
78
84
79
85
module Extraction = struct
0 commit comments