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

Method CheckTools

buildsystems/build_meson.go:37–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (m meson) CheckTools() []string {
38 // Start with build_tools from port.toml
39 tools := slices.Clone(m.BuildConfig.BuildTools)
40
41 // Add default tools
42 tools = append(tools, "ninja", "cmake")
43
44 // Add build tools dynamically.
45 switch runtime.GOOS {
46 case "windows":
47 tools = append(tools,
48 "python3",
49 "python3:"+m.buildSystem,
50 )
51 case "linux":
52 tools = append(tools, "python3:"+m.buildSystem)
53 }
54
55 return tools
56}
57
58func (m *meson) preConfigure() error {
59 toolchain := m.Ctx.Platform().GetToolchain()

Callers

nothing calls this directly

Calls 1

CloneMethod · 0.65

Tested by

no test coverage detected