File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ import (
112112type ContainerFindIncludes struct {}
113113
114114func (s * ContainerFindIncludes ) Run (ctx * types.Context ) error {
115- finder := NewCppIncludesFinder (ctx )
115+ finder := NewCppIncludesFinder (ctx , ctx . BuildPath . Join ( "includes.cache" ) )
116116 finder .UseIncludeDir (ctx .BuildProperties .GetPath ("build.core.path" ))
117117 if variantPath := ctx .BuildProperties .GetPath ("build.variant.path" ); variantPath != nil {
118118 finder .UseIncludeDir (variantPath )
@@ -147,10 +147,10 @@ type CppIncludesFinder struct {
147147}
148148
149149// NewCppIncludesFinder create a new include
150- func NewCppIncludesFinder (ctx * types.Context ) * CppIncludesFinder {
150+ func NewCppIncludesFinder (ctx * types.Context , cachePath * paths. Path ) * CppIncludesFinder {
151151 return & CppIncludesFinder {
152152 ctx : ctx ,
153- cache : loadCacheFrom (ctx . BuildPath . Join ( "includes.cache" ) ),
153+ cache : loadCacheFrom (cachePath ),
154154 queue : & UniqueSourceFileQueue {},
155155 log : logrus .WithField ("task" , "DetectingLibraries" ),
156156 }
You can’t perform that action at this time.
0 commit comments