mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
d2d78d3d0a
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
24 lines
536 B
Go
24 lines
536 B
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
|
|
}
|