Browse Source

Noticed that cached file analysis forgot to push new results in the Builder build system.

David Piuva 9 months ago
parent
commit
1820957a95
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Source/tools/builder/code/analyzer.cpp

+ 4 - 1
Source/tools/builder/code/analyzer.cpp

@@ -152,7 +152,7 @@ static void tokenize(List<String> &target, ReadableString line) {
 
 #ifdef CACHED_ANALYSIS
 	// Remembering previous results from analyzing the same files.
-	List<Dependency> analysisCache;
+	static List<Dependency> analysisCache;
 #endif
 
 void analyzeFile(Dependency &result, ReadableString absolutePath, Extension extension) {
@@ -211,6 +211,9 @@ void analyzeFile(Dependency &result, ReadableString absolutePath, Extension exte
 			tokens.clear();
 		}
 	});
+	#ifdef CACHED_ANALYSIS
+		analysisCache.push(result);
+	#endif
 }
 
 void analyzeFromFile(ProjectContext &context, ReadableString absolutePath) {