Skip to content

Commit 7e0aec4

Browse files
authored
Merge pull request #883 from proux01/rocq20816
Adapt to rocq-prover/rocq#20816
2 parents d044e7a + b19bce1 commit 7e0aec4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/rocq_elpi_builtins.ml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,15 @@ let univ_binder_compat_820 a b = a
16861686
let univ_binder_compat_820 a b = b
16871687
[%%endif]
16881688

1689+
[%%if coq = "8.20" || coq = "9.0" || coq= "9.1"]
1690+
let locality_of_options (o : options) = o.local <> Some false
1691+
[%%else]
1692+
let locality_of_options (o : options) = match o.local with
1693+
| Some true -> Libobject.Local
1694+
| Some false -> Libobject.SuperGlobal
1695+
| None -> Libobject.Export
1696+
[%%endif]
1697+
16891698
let coq_rest_builtins =
16901699
let open API.BuiltIn in
16911700
let open Pred in
@@ -3389,7 +3398,7 @@ Supported attributes:
33893398
} in
33903399
aux vars nenv env nargs term
33913400
in
3392-
let local = options.local <> Some false in
3401+
let local = locality_of_options options in
33933402
let onlyparsing = (onlyparsing = B.Given true) in
33943403
let name = Id.of_string name in
33953404
let vars, nenv, env, body = strip_n_lambas nargs env term in

0 commit comments

Comments
 (0)