From fc8b8deac2d77524ff8cfe44acf95b5e1f59804e Mon Sep 17 00:00:00 2001 From: Steven Shi Date: Tue, 19 Nov 2019 16:17:00 +0800 Subject: BaseTools: Leverage compiler output to optimize binary cache Redesign the binary cache and bases on the compiler to output the dependency header files info for every module. The binary cache will directly consume the dependency header files info and doesn't parse the C source code by iteself. Also redesign the dependency files list format for module and try to share the common lib hash result as more as possible in local process. Remove the unnecessary share data access across multiprocessing. Signed-off-by: Steven Shi Cc: Liming Gao Cc: Bob Feng Reviewed-by: Bob Feng --- BaseTools/Source/Python/AutoGen/DataPipe.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'BaseTools/Source/Python/AutoGen/DataPipe.py') diff --git a/BaseTools/Source/Python/AutoGen/DataPipe.py b/BaseTools/Source/Python/AutoGen/DataPipe.py index 078bafecb4..50403fbfb5 100755 --- a/BaseTools/Source/Python/AutoGen/DataPipe.py +++ b/BaseTools/Source/Python/AutoGen/DataPipe.py @@ -159,6 +159,8 @@ class MemoryDataPipe(DataPipe): self.DataContainer = {"LogLevel": EdkLogger.GetLevel()} + self.DataContainer = {"UseHashCache":GlobalData.gUseHashCache} + self.DataContainer = {"BinCacheSource":GlobalData.gBinCacheSource} self.DataContainer = {"BinCacheDest":GlobalData.gBinCacheDest} -- cgit v1.2.3