(toolset, version, cxx string)
| 384 | } |
| 385 | |
| 386 | func (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 | } |
no test coverage detected