tinygo/targets/riscv64.json
Ayke van Laethem 0ddcf4af96 riscv: add "target-abi" metadata flag
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.
2022-10-19 22:23:19 +02:00

12 строки
196 Б
JSON

{
"inherits": ["riscv"],
"llvm-target": "riscv64-unknown-none",
"target-abi": "lp64",
"build-tags": ["tinygo.riscv64"],
"cflags": [
"-march=rv64gc"
],
"ldflags": [
"-melf64lriscv"
]
}