Skip to content

Commit

Permalink
Add a comment about cache behavior in case of PP
Browse files Browse the repository at this point in the history
  • Loading branch information
pitag-ha committed May 11, 2023
1 parent a7c61a6 commit cfb2fed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/kernel/mpipeline.ml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@ let process
let cache_disabling =
match (config.merlin.use_ppx_cache, pp_result) with
| false, _ -> Some "configuration"
| true, Some _ -> Some "source preprocessor usage"
| true, Some _ ->
(* The cache could be refined in the future to also act on the PP phase.
For now, let's disable the whole cache when there's a PP. *)
Some "source preprocessor usage"
| true, None -> None
in
Reader_with_cache.apply ~cache_disabling ~force_invalidation:false
Expand Down

0 comments on commit cfb2fed

Please sign in to comment.