Skip to content

Commit

Permalink
Merge pull request #697 from LPCIC/fix-ci-820
Browse files Browse the repository at this point in the history
fix compilation on 8.20
  • Loading branch information
gares authored Oct 2, 2024
2 parents a379c07 + 795b964 commit ff14ff5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/cs/src/coq_elpi_cs_hook.mlg
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ open Elpi_plugin
open Coq_elpi_arg_syntax
open Coq_elpi_vernacular

[%%if coq = "8.20"]
let adapt_hook f : Evarconv.hook = fun env sigma (s,l,t) x -> f env sigma (s,Some l,t) x
[%%else]
let adapt_hook f : Evarconv.hook = f
[%%endif]

let add_cs_hook =
let cs_hook_program = Summary.ref ~name:"elpi-cs" None in
Expand All @@ -70,7 +75,7 @@ let add_cs_hook =
| None -> None
| Some h -> elpi_cs_hook h env sigma proj pat in
let name = "elpi-cs" in
Evarconv.register_hook ~name cs_hook;
Evarconv.register_hook ~name (adapt_hook cs_hook);
let inCs =
let cache program =
cs_hook_program := Some program;
Expand Down

0 comments on commit ff14ff5

Please sign in to comment.