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