flags

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultTestTimeout = "10m" // Matches Go's default test timeout

Variables

View Source
var (
	Cover     bool
	CoverMode string
	CoverPkg  string
)

Coverage flags are shared by build and test. Profiles remain test-only; covered applications write Go's binary coverage data through GOCOVERDIR.

View Source
var (
	TestRun              string
	TestBench            string
	TestTimeout          string
	TestShort            bool
	TestCount            int
	TestCPU              string
	TestCoverProfile     string
	TestParallel         int
	TestFailfast         bool
	TestJSON             bool
	TestList             string
	TestSkip             string
	TestShuffle          string
	TestFullpath         bool
	TestBenchmem         bool
	TestBenchtime        string
	TestBlockProfileRate int
	TestCPUProfile       string
	TestMemProfile       string
	TestMemProfileRate   int
	TestBlockProfile     string
	TestMutexProfile     string
	TestMutexProfileFrac int
	TestTrace            string
	TestOutputDir        string
	TestPaniconexit0     bool
	TestTestLogFile      string
	TestGoCoverDir       string
	TestFuzzWorker       bool
	TestFuzzCacheDir     string
	TestFuzz             string
	TestFuzzTime         string
	TestFuzzMinimizeTime string
)

Test binary flags

View Source
var BaudRate int
View Source
var BuildEnv string
View Source
var BuildMode string
View Source
var BuildTrace string
View Source
var CheckLLFiles bool
View Source
var CheckLinkArgs bool
View Source
var CompileOnly bool
View Source
var CompilerVerbose bool
View Source
var DeadcodeDrop bool
View Source
var Emulator bool
View Source
var ForceEspClang bool
View Source
var ForceRebuild bool
View Source
var Gen bool
View Source
var GenLLFiles bool
View Source
var GoGlobalDCE *bool
View Source
var LTO ltoFlag
View Source
var LTOPluginPath string
View Source
var OptLevel optlevel.Level
View Source
var OutBin bool
View Source
var OutHex bool
View Source
var OutImg bool
View Source
var OutUf2 bool
View Source
var OutZip bool
View Source
var OutputFile string
View Source
var PCLN pclnFlag
View Source
var Port string
View Source
var PrintCommands bool
View Source
var PthreadStackSize byteSizeFlag
View Source
var SizeFormat string
View Source
var SizeLevel string
View Source
var SizeReport bool
View Source
var Tags string
View Source
var Target string
View Source
var Verbose bool

Functions

func AddBuildFlags

func AddBuildFlags(fs *flag.FlagSet)

func AddBuildModeFlags

func AddBuildModeFlags(fs *flag.FlagSet)

func AddBuildTraceFlag

func AddBuildTraceFlag(fs *flag.FlagSet)

AddBuildTraceFlag adds the build-scheduler trace flag. It is intentionally separate from AddBuildFlags for commands that execute one traced build invocation, currently "llgo build" and "llgo test".

func AddCmpTestFlags

func AddCmpTestFlags(fs *flag.FlagSet)

func AddCommonFlags

func AddCommonFlags(fs *flag.FlagSet)

func AddCompilerVerboseFlag

func AddCompilerVerboseFlag(fs *flag.FlagSet)

func AddCoverageFlags added in v1.0.5

func AddCoverageFlags(fs *flag.FlagSet)

func AddEmbeddedFlags

func AddEmbeddedFlags(fs *flag.FlagSet)

func AddEmulatorFlags

func AddEmulatorFlags(fs *flag.FlagSet)

func AddGlobalDCEFlag

func AddGlobalDCEFlag(fs *flag.FlagSet)

func AddLTOFlag

func AddLTOFlag(fs *flag.FlagSet)

func AddOptLevelFlags

func AddOptLevelFlags(fs *flag.FlagSet)

func AddOutputFlags

func AddOutputFlags(fs *flag.FlagSet)

func AddTestBinaryFlags

func AddTestBinaryFlags(fs *flag.FlagSet)

func AddTestFlags

func AddTestFlags(fs *flag.FlagSet)

func ApplyGoBuildFlags

func ApplyGoBuildFlags(conf *build.Config, args []string) error

ApplyGoBuildFlags validates and appends normalized Go build flags captured by the command layer, and stores supported compiler and linker semantics in typed backend configuration. Configuration remains unchanged on error.

func CaptureGoBuildFlags

func CaptureGoBuildFlags(cmd *base.Command) *base.PassArgs

CaptureGoBuildFlags registers the Go build flags that LLGo forwards to go/packages and returns their command-local collector. LLGo-native flags are registered separately by AddBuildFlags.

func ResolveLTOMode

func ResolveLTOMode(defaultValue lto.Mode) lto.Mode

func UpdateBuildConfig

func UpdateBuildConfig(conf *build.Config) error

func UpdateConfig

func UpdateConfig(conf *build.Config) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL