- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ToSymbolFunc (0.26 sec)
-
src/cmd/internal/pkgpath/pkgpath_test.go
os.Setenv(testEnvName, test.env) fn, err := ToSymbolFunc(cmd, tmpdir) if err != nil { if !test.fail { t.Errorf("ToSymbolFunc(%q, %q): unexpected error %v", cmd, tmpdir, err) } } else if test.fail { t.Errorf("ToSymbolFunc(%q, %q) succeeded but expected to fail", cmd, tmpdir) } else if got, want := fn(input), test.mangled; got != want { t.Errorf("ToSymbolFunc(%q, %q)(%q) = %q, want %q", cmd, tmpdir, input, got, want)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 18:26:59 UTC 2022 - 2.9K bytes - Viewed (0) -
src/cmd/internal/pkgpath/pkgpath.go
// This package is not used for the gc compiler. package pkgpath import ( "bytes" "errors" "fmt" "os" "os/exec" "strings" ) // ToSymbolFunc returns a function that may be used to convert a // package path into a string suitable for use as a symbol. // cmd is the gccgo/GoLLVM compiler in use, and tmpdir is a temporary // directory to pass to os.CreateTemp().
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 4.2K bytes - Viewed (0) -
src/cmd/go/internal/work/gccgo.go
func (tools gccgoToolchain) gccgoCleanPkgpath(b *Builder, p *load.Package) string { gccgoToSymbolFuncOnce.Do(func() { tmpdir := b.WorkDir if cfg.BuildN { tmpdir = os.TempDir() } fn, err := pkgpath.ToSymbolFunc(tools.compiler(), tmpdir) if err != nil { fmt.Fprintf(os.Stderr, "cmd/go: %v\n", err) base.SetExitStatus(2) base.Exit() } gccgoToSymbolFunc = fn })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 02 22:18:34 UTC 2024 - 19K bytes - Viewed (0) -
src/cmd/cgo/out.go
cmd := os.Getenv("GCCGO") if cmd == "" { cmd, err = exec.LookPath("gccgo") if err != nil { fatalf("unable to locate gccgo: %v", err) } } gccgoMangler, err = pkgpath.ToSymbolFunc(cmd, *objDir) if err != nil { fatalf("%v", err) } } return gccgoMangler(ppath) } // Return the package prefix when using gccgo. func (p *Package) gccgoSymbolPrefix() string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:10 UTC 2024 - 59.6K bytes - Viewed (0)