Home | History | Annotate | Download | only in ld

Lines Matching refs:BuildMode

16 	Buildmode BuildMode
19 // A BuildMode indicates the sort of object we are building.
21 // Possible build modes are the same as those for the -buildmode flag
22 // in cmd/go, and are documented in 'go help buildmode'.
23 type BuildMode uint8
26 BuildmodeUnset BuildMode = iota
35 func (mode *BuildMode) Set(s string) error {
37 return fmt.Errorf("buildmode %s not supported on %s/%s", s, obj.GOOS, obj.GOARCH)
41 return fmt.Errorf("invalid buildmode: %q", s)
105 func (mode *BuildMode) String() string {
122 return fmt.Sprintf("BuildMode(%d)", uint8(*mode))
192 switch Buildmode {
194 return true, "buildmode=c-archive"
196 return true, "buildmode=c-shared"
202 return true, "buildmode=pie"
205 return true, "buildmode=plugin"
207 return true, "buildmode=shared"
241 } else if Buildmode == BuildmodePIE {