Skip to content

Commit

Permalink
[ccache] play safe with STM
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Nov 26, 2020
1 parent 5a6c5ce commit aa16865
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/coq_elpi_vernacular.ml
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,11 @@ let debug vl = debug_vars := List.fold_right EC.StrSet.add vl EC.StrSet.empty
let bound_steps n =
if n <= 0 then max_steps := default_max_step else max_steps := n

let compiler_cache = ref SLMap.empty
(* Units are marshalable, but programs are not *)
let compiler_cache = Summary.ref
~freeze:(fun ~marshallable x -> if marshallable then SLMap.empty else x)
~name:"elpi-compiler-cache"
SLMap.empty

let compile name baseul extra =
try
Expand Down

0 comments on commit aa16865

Please sign in to comment.