mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-01 01:27:46 +00:00
107fccb288
This commit does two things:
* It adds support for the GOOS and GOARCH environment variables. They
fall back to runtime.GO* only when not available.
* It adds support for 3 new architectures: 386, arm, and arm64. For
now, this is Linux-only.
22 lines
428 B
JSON
22 lines
428 B
JSON
{
|
|
"build-tags": ["tinygo.arm", "js", "wasm"],
|
|
"goos": "js",
|
|
"goarch": "wasm",
|
|
"compiler": "clang-7",
|
|
"gc": "marksweep",
|
|
"linker": "arm-none-eabi-ld",
|
|
"rtlib": "compiler-rt",
|
|
"cflags": [
|
|
"-Oz",
|
|
"-mthumb",
|
|
"-fshort-enums",
|
|
"-fno-exceptions", "-fno-unwind-tables",
|
|
"-ffunction-sections", "-fdata-sections"
|
|
],
|
|
"ldflags": [
|
|
"--gc-sections"
|
|
],
|
|
"objcopy": "arm-none-eabi-objcopy",
|
|
"gdb": "arm-none-eabi-gdb"
|
|
}
|