diff options
Diffstat (limited to 'targets/fe310.json')
-rw-r--r-- | targets/fe310.json | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/targets/fe310.json b/targets/fe310.json index 76f749705..636b4f2d9 100644 --- a/targets/fe310.json +++ b/targets/fe310.json @@ -1,5 +1,19 @@ { "inherits": ["riscv32"], "features": ["+a", "+c", "+m"], - "build-tags": ["fe310", "sifive"] + "build-tags": ["fe310", "sifive"], + "llvm-target": "riscv32--none", + "cflags": [ + "--target=riscv32--none", + "-march=rv32imac", + "-mabi=ilp32", + "-Os", + "-Werror", + "-fno-exceptions", "-fno-unwind-tables", + "-ffunction-sections", "-fdata-sections" + ], + "ldflags": [ + "-melf32lriscv", + "--gc-sections" + ] } |