File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ import (
111
111
type ContainerFindIncludes struct {}
112
112
113
113
func (s * ContainerFindIncludes ) Run (ctx * types.Context ) error {
114
- finder := NewCppIncludesFinder (ctx )
114
+ finder := NewCppIncludesFinder (ctx , ctx . BuildPath . Join ( "includes.cache" ) )
115
115
finder .UseIncludeDir (ctx .BuildProperties .GetPath ("build.core.path" ))
116
116
if variantPath := ctx .BuildProperties .GetPath ("build.variant.path" ); variantPath != nil {
117
117
finder .UseIncludeDir (variantPath )
@@ -146,10 +146,10 @@ type CppIncludesFinder struct {
146
146
}
147
147
148
148
// NewCppIncludesFinder create a new include
149
- func NewCppIncludesFinder (ctx * types.Context ) * CppIncludesFinder {
149
+ func NewCppIncludesFinder (ctx * types.Context , cachePath * paths. Path ) * CppIncludesFinder {
150
150
return & CppIncludesFinder {
151
151
ctx : ctx ,
152
- cache : loadCacheFrom (ctx . BuildPath . Join ( "includes.cache" ) ),
152
+ cache : loadCacheFrom (cachePath ),
153
153
queue : & UniqueSourceFileQueue {},
154
154
log : logrus .WithField ("task" , "DetectingLibraries" ),
155
155
}
You can’t perform that action at this time.
0 commit comments