MCPcopy Create free account
hub / github.com/celer-pkg/celer / formatUsingToolset

Method formatUsingToolset

buildsystems/build_b2.go:386–397  ·  view source on GitHub ↗
(toolset, version, cxx string)

Source from the content-addressed store, hash-verified

384}
385
386func (b b2) formatUsingToolset(toolset, version, cxx string) string {
387 var compilerCmd string
388 if b.Ctx.CCacheEnabled() {
389 compilerCmd = fmt.Sprintf(`"ccache" "%s"`, filepath.ToSlash(cxx))
390 } else {
391 compilerCmd = fmt.Sprintf(`"%s"`, filepath.ToSlash(cxx))
392 }
393 if version != "" {
394 return fmt.Sprintf(`using %s : %s : %s ;`, toolset, version, compilerCmd)
395 }
396 return fmt.Sprintf(`using %s : : %s ;`, toolset, compilerCmd)
397}

Callers 1

ConfigureMethod · 0.95

Calls 2

SprintfMethod · 0.80
CCacheEnabledMethod · 0.65

Tested by

no test coverage detected