Skip to content

Commit

Permalink
[cbuild] Remove special handling for triggering 'executes' steps
Browse files Browse the repository at this point in the history
  • Loading branch information
brondani committed Nov 15, 2024
1 parent c7b11bc commit 5c836bb
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/builder/csolution/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,18 +433,6 @@ func (b CSolutionBuilder) buildContexts(selectedContexts []string, projBuilders
if !b.Setup {
buildSummary := fmt.Sprintf("Build summary: %d succeeded, %d failed - Time Elapsed: %s", buildPassCnt, buildFailCnt, utils.FormatTime(totalBuildTime))
sepLen := len(buildSummary)
// if no context is specified, run cmake build target 'all' to trigger 'executes' steps
if b.Options.UseCbuild2CMake && len(b.Options.Contexts) == 0 && projBuilders[0].(cbuildidx.CbuildIdxBuilder).HasExecutes() {
infoMsg := "Check all CMake targets"
sepLen := len(infoMsg)
utils.PrintSeparator("-", sepLen)
utils.LogStdMsg(infoMsg)
builder := projBuilders[0].(cbuildidx.CbuildIdxBuilder)
builder.Options.Target = "all"
if buildErr := builder.Build(); buildErr != nil {
err = buildErr
}
}
utils.PrintSeparator("-", sepLen)
utils.LogStdMsg(buildSummary)
utils.PrintSeparator("=", sepLen)
Expand Down

0 comments on commit 5c836bb

Please sign in to comment.