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 @@ -111,7 +111,7 @@ import (
111111type ContainerFindIncludes struct {}
112112
113113func (s * ContainerFindIncludes ) Run (ctx * types.Context ) error {
114- finder := NewCppIncludesFinder (ctx )
114+ finder := NewCppIncludesFinder (ctx , ctx . BuildPath . Join ( "includes.cache" ) )
115115 finder .UseIncludeDir (ctx .BuildProperties .GetPath ("build.core.path" ))
116116 if variantPath := ctx .BuildProperties .GetPath ("build.variant.path" ); variantPath != nil {
117117 finder .UseIncludeDir (variantPath )
@@ -146,10 +146,10 @@ type CppIncludesFinder struct {
146146}
147147
148148// NewCppIncludesFinder create a new include
149- func NewCppIncludesFinder (ctx * types.Context ) * CppIncludesFinder {
149+ func NewCppIncludesFinder (ctx * types.Context , cachePath * paths. Path ) * CppIncludesFinder {
150150 return & CppIncludesFinder {
151151 ctx : ctx ,
152- cache : loadCacheFrom (ctx . BuildPath . Join ( "includes.cache" ) ),
152+ cache : loadCacheFrom (cachePath ),
153153 queue : & UniqueSourceFileQueue {},
154154 log : logrus .WithField ("task" , "DetectingLibraries" ),
155155 }
You can’t perform that action at this time.
0 commit comments