Skip to content

Commit

Permalink
feat:support result cache, issue: TencentBlueKing#315
Browse files Browse the repository at this point in the history
  • Loading branch information
tbs60 committed Dec 27, 2024
1 parent 3625e34 commit 74a098d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/booster/bk_dist/handler/ue4/cc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ func (cc *TaskCC) preBuild(args []string) error {
cc.serverSideArgs = serverSideArgs

if cc.SupportResultCache(args) != resultcache.CacheTypeNone {
cc.resultCacheArgs = make([]string, 0, len(cc.serverSideArgs))
cc.resultCacheArgs = make([]string, len(cc.serverSideArgs))
copy(cc.resultCacheArgs, cc.serverSideArgs)
for index := range cc.resultCacheArgs {
if cc.resultCacheArgs[index] == cc.preprocessedFile {
Expand Down
2 changes: 1 addition & 1 deletion src/backend/booster/bk_dist/handler/ue4/cl/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ func (cl *TaskCL) preBuild(args []string) error {
cl.serverSideArgs = serverSideArgs

if cl.SupportResultCache(args) != resultcache.CacheTypeNone {
cl.resultCacheArgs = make([]string, 0, len(cl.serverSideArgs))
cl.resultCacheArgs = make([]string, len(cl.serverSideArgs))
copy(cl.resultCacheArgs, cl.serverSideArgs)
for index := range cl.resultCacheArgs {
if cl.resultCacheArgs[index] == cl.preprocessedFile {
Expand Down

0 comments on commit 74a098d

Please sign in to comment.