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 @@ -121,7 +121,7 @@ func (s *ContainerFindIncludes) Run(ctx *types.Context) error {
121
121
}
122
122
123
123
func (s * ContainerFindIncludes ) findIncludes (ctx * types.Context ) error {
124
- finder := NewCppIncludesFinder (ctx )
124
+ finder := NewCppIncludesFinder (ctx , ctx . BuildPath . Join ( "includes.cache" ) )
125
125
finder .UseIncludeDir (ctx .BuildProperties .GetPath ("build.core.path" ))
126
126
if variantPath := ctx .BuildProperties .GetPath ("build.variant.path" ); variantPath != nil {
127
127
finder .UseIncludeDir (variantPath )
@@ -156,10 +156,10 @@ type CppIncludesFinder struct {
156
156
}
157
157
158
158
// NewCppIncludesFinder create a new include
159
- func NewCppIncludesFinder (ctx * types.Context ) * CppIncludesFinder {
159
+ func NewCppIncludesFinder (ctx * types.Context , cachePath * paths. Path ) * CppIncludesFinder {
160
160
return & CppIncludesFinder {
161
161
ctx : ctx ,
162
- cache : loadCacheFrom (ctx . BuildPath . Join ( "includes.cache" ) ),
162
+ cache : loadCacheFrom (cachePath ),
163
163
queue : & UniqueSourceFileQueue {},
164
164
log : logrus .WithField ("task" , "DetectingLibraries" ),
165
165
}
You can’t perform that action at this time.
0 commit comments