Skip to content

Commit

Permalink
feat: support pump for clang in linux,issue: #264
Browse files Browse the repository at this point in the history
  • Loading branch information
tbs60 committed Jul 10, 2024
1 parent dd8d378 commit d6ed6fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/backend/booster/bk_dist/handler/cc/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,12 @@ func (cc *TaskCC) preExecute(command []string) (*dcSDK.BKDistCommand, error) {
}
}

if cc.forcedepend {
args = append(args, "-MD")
args = append(args, "-MF")
args = append(args, cc.sourcedependfile)
}

if err = cc.preBuild(args); err != nil {
blog.Warnf("cc: [%s] pre execute pre-build %v: %v", cc.tag, args, err)
return nil, err
Expand Down

0 comments on commit d6ed6fd

Please sign in to comment.