@@ -90,7 +90,7 @@ def getLeanTar : IO String := do
9090/-- Bump this number to invalidate the cache, in case the existing hashing inputs are insufficient.
9191It is not a global counter, and can be reset to 0 as long as the lean githash or lake manifest has
9292changed since the last time this counter was touched. -/
93- def rootHashGeneration : UInt64 := 0
93+ def rootHashGeneration : UInt64 := 4
9494
9595/--
9696`CacheM` stores the following information:
@@ -311,10 +311,18 @@ def mkBuildPaths (mod : Name) : CacheM <| List (FilePath × Bool) := do
311311 return [
312312 -- Note that `packCache` below requires that the `.trace` file is first in this list.
313313 (packageDir / LIBDIR / path.withExtension "trace" , true ),
314+ -- Note: the `.olean`, `.olean.server`, `.olean.private` files must be consecutive,
315+ -- and in this order. The corresponding `.hash` files can come afterwards, in any order.
314316 (packageDir / LIBDIR / path.withExtension "olean" , true ),
317+ (packageDir / LIBDIR / path.withExtension "olean.server" , false ),
318+ (packageDir / LIBDIR / path.withExtension "olean.private" , false ),
315319 (packageDir / LIBDIR / path.withExtension "olean.hash" , true ),
320+ (packageDir / LIBDIR / path.withExtension "olean.server.hash" , false ),
321+ (packageDir / LIBDIR / path.withExtension "olean.private.hash" , false ),
316322 (packageDir / LIBDIR / path.withExtension "ilean" , true ),
317323 (packageDir / LIBDIR / path.withExtension "ilean.hash" , true ),
324+ (packageDir / LIBDIR / path.withExtension "ir" , false ),
325+ (packageDir / LIBDIR / path.withExtension "ir.hash" , false ),
318326 (packageDir / IRDIR / path.withExtension "c" , true ),
319327 (packageDir / IRDIR / path.withExtension "c.hash" , true ),
320328 (packageDir / LIBDIR / path.withExtension "extra" , false )]
0 commit comments