-
Notifications
You must be signed in to change notification settings - Fork 918
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: move string literals to constants
Signed-off-by: leongross <leon.gross@9elements.com>
- Loading branch information
Showing
6 changed files
with
142 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package compileopts | ||
|
||
// Scheduler options | ||
const ( | ||
SchedulerNone = "none" | ||
SchedulerTasks = "tasks" | ||
SchedulerAsyncify = "asyncify" | ||
|
||
// GC options | ||
GCNone = "none" | ||
GCLeaking = "leaking" | ||
GCConservative = "conservative" | ||
GCCustom = "custom" | ||
GCPrecise = "precise" | ||
|
||
// Serial options | ||
SerialNone = "none" | ||
SerialUART = "uart" | ||
SerialUSB = "usb" | ||
SerialRTT = "rtt" | ||
|
||
// Size options | ||
SizeNone = "none" | ||
SizeShort = "short" | ||
SizeFull = "full" | ||
|
||
// Panic strategies | ||
PanicPrint = "print" | ||
PanicTrap = "trap" | ||
|
||
// Optimization Options | ||
OptNone = "none" | ||
Opt1 = "1" | ||
Opt2 = "2" | ||
Opt3 = "3" | ||
Opts = "s" | ||
Optz = "z" | ||
|
||
// Go builder Options | ||
TinyGoRoot = "TINYGOROOT" | ||
GolangCache = "GOCACHE" | ||
|
||
// Well defined Golang architectures | ||
ArchArm64 = "armd64" | ||
ArchArm = "arm" | ||
|
||
// Binary extension formats | ||
BinExtNone = "" | ||
BinExtWasm = "wasm" | ||
BinExtExe = "exe" | ||
BinExtElf = "elf" | ||
|
||
// Non executable binary formats | ||
BinFormatBin = "bin" | ||
BinFormatGba = "gba" | ||
BinFormatNro = "nro" | ||
BinFormatImg = "img" | ||
BinFormatHex = "hex" | ||
BinFormatUf2 = "uf2" | ||
BinFormatZip = "zip" | ||
|
||
// Operating System identifiers | ||
OsWindows = "windows" | ||
OsLinux = "linux" | ||
|
||
// Programmers | ||
ProgOpenOCD = "openocd" | ||
ProgMSD = "msd" | ||
ProgCommand = "command" | ||
ProgBMP = "bmp" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.