From c6dab9269f6f481f82699fe16d6e868c9734d83f Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Fri, 5 Aug 2022 03:41:35 +0000 Subject: [PATCH] MonoAOTCompiler.cs: fix regression in caching, which breaks incremental .. builds. https://github.com/dotnet/runtime/pull/72394 disabled the cache always, even when it was intended to be used. This reverses that change. Fixes https://github.com/dotnet/runtime/issues/73419 --- src/tasks/Common/FileCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/Common/FileCache.cs b/src/tasks/Common/FileCache.cs index 5f090693f7cee6..c362719b3be598 100644 --- a/src/tasks/Common/FileCache.cs +++ b/src/tasks/Common/FileCache.cs @@ -29,7 +29,7 @@ public FileCache(string? cacheFilePath, TaskLoggingHelper log) return; } - //Enabled = true; + Enabled = true; if (File.Exists(cacheFilePath)) { _oldCache = (CompilerCache?)JsonSerializer.Deserialize(File.ReadAllText(cacheFilePath),