func (t *target) cFlags() []string {
	// Compile statically to avoid cross-architecture dynamic linking.
	flags := []string{"-Wall", "-Werror", "-static", "-I" + IncludeDir}

	// Architecture-specific flags
	if t.SignedChar {
		flags = append(flags, "-fsigned-char")
	}
	if t.LinuxArch == "x86" {
		flags = append(flags, fmt.Sprintf("-m%d", t.Bits))
	}

	return flags
}
// Flags that should be given to gcc and cgo for this target
Flags that should be given to gcc and cgo for this target
// Flags that should be given to gcc and cgo for this target
func (t *target) cFlags() []string {
	flags := []string{"-Wall", "-Werror", "-static", "-I" + IncludeDir}
	if t.SignedChar {
		flags = append(flags, "-fsigned-char")
	}
	if t.LinuxArch == "x86" {
		flags = append(flags, fmt.Sprintf("-m%d", t.Bits))
	}
	return flags
}
func ( t * target ) cFlags ( ) [ ] string { flags := [ ] string { " " , " " , " " , " " + IncludeDir } if t . SignedChar { flags = append ( flags , " " ) } if t . LinuxArch == " " { flags = append ( flags , fmt . Sprintf ( " " , t . Bits ) ) } return flags }
Flags that should be given to gcc and cgo for this target
Flags that should be given to gcc and cgo for this target
// Compile statically to avoid cross-architecture dynamic linking. // Architecture-specific flags