
This flag is necessary in LLVM 15 because it appears that LLVM 15 has changed the default target ABI from lp64 to lp64d. This results in a linker failure. Setting the "target-abi" forces the RISC-V backend to use the intended target ABI.
15 строки
278 Б
JSON
15 строки
278 Б
JSON
{
|
|
"inherits": ["riscv"],
|
|
"llvm-target": "riscv32-unknown-none",
|
|
"target-abi": "ilp32",
|
|
"build-tags": ["tinygo.riscv32"],
|
|
"scheduler": "tasks",
|
|
"default-stack-size": 2048,
|
|
"cflags": [
|
|
"-march=rv32imac"
|
|
],
|
|
"ldflags": [
|
|
"-melf32lriscv"
|
|
],
|
|
"gdb": ["gdb-multiarch"]
|
|
}
|