
This makes sure that the LLVM target features match the one generated by Clang: - This fixes a bug introduced when setting the target CPU for all targets: Cortex-M4 would now start using floating point operations while they were disabled in C. - This will make it possible in the future to inline C functions in Go and vice versa. This will need some more work though. There is a code size impact. Cortex-M4 targets are increased slightly in binary size while Cortex-M0 targets tend to be reduced a little bit. Other than that, there is little impact.
25 строки
563 Б
JSON
25 строки
563 Б
JSON
{
|
|
"goos": "linux",
|
|
"goarch": "arm",
|
|
"build-tags": ["tinygo.riscv", "baremetal", "linux", "arm"],
|
|
"gc": "conservative",
|
|
"linker": "ld.lld",
|
|
"rtlib": "compiler-rt",
|
|
"libc": "picolibc",
|
|
"cflags": [
|
|
"-Werror",
|
|
"-mno-relax",
|
|
"-fno-exceptions", "-fno-unwind-tables",
|
|
"-ffunction-sections", "-fdata-sections"
|
|
],
|
|
"ldflags": [
|
|
"--gc-sections"
|
|
],
|
|
"extra-files": [
|
|
"src/device/riscv/start.S",
|
|
"src/internal/task/task_stack_tinygoriscv.S",
|
|
"src/runtime/gc_riscv.S",
|
|
"src/device/riscv/handleinterrupt.S"
|
|
],
|
|
"gdb": ["riscv64-unknown-elf-gdb"]
|
|
}
|