
This flag is overloaded. It can be used in two ways: * Choosing the flash method to use (openocd, msd, command). * Choosing the OpenOCD programmer name. For example, you can use one of these to use OpenOCD instead of the mass-storage device programmer: tinygo flash -target=microbit -programmer=openocd tinygo flash -target=microbit -programmer=cmsis-dap
23 строки
536 Б
Go
23 строки
536 Б
Go
package compileopts
|
|
|
|
// Options contains extra options to give to the compiler. These options are
|
|
// usually passed from the command line.
|
|
type Options struct {
|
|
Target string
|
|
Opt string
|
|
GC string
|
|
PanicStrategy string
|
|
Scheduler string
|
|
PrintIR bool
|
|
DumpSSA bool
|
|
VerifyIR bool
|
|
Debug bool
|
|
PrintSizes string
|
|
CFlags []string
|
|
LDFlags []string
|
|
Tags string
|
|
WasmAbi string
|
|
HeapSize int64
|
|
TestConfig TestConfig
|
|
Programmer string
|
|
}
|