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

Method exportToolchainFile

snapshot/export.go:295–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293}
294
295func (e *Exporter) exportToolchainFile() error {
296 src := filepath.Join(dirs.WorkspaceDir, "toolchain_file.cmake")
297 dst := filepath.Join(e.exportDir, "toolchain_file.cmake")
298
299 if !fileio.PathExists(src) {
300 return fmt.Errorf("toolchain file not found")
301 }
302
303 return fileio.CopyFile(src, dst)
304}
305
306func (e *Exporter) exportCelerExecutable() error {
307 exePath, err := os.Executable()

Callers 1

ExportMethod · 0.95

Calls 2

PathExistsFunction · 0.92
CopyFileFunction · 0.92

Tested by

no test coverage detected