aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYannis Huber <[email protected]>2020-06-30 16:35:51 +0200
committerRon Evans <[email protected]>2020-07-08 00:21:59 +0200
commite1757e03475f69b66e4d27739cb911efb73da537 (patch)
tree27e3730ccff89254b738bb61adec29712c2b32e4
parenta05fc10699759a4ff5728e25a1cca5ff26ffcc8f (diff)
downloadtinygo-e1757e03475f69b66e4d27739cb911efb73da537.tar.gz
tinygo-e1757e03475f69b66e4d27739cb911efb73da537.zip
builder: add support for 64-bit RISC-V
-rw-r--r--builder/library.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/builder/library.go b/builder/library.go
index 7bb506c76..674a78447 100644
--- a/builder/library.go
+++ b/builder/library.go
@@ -74,6 +74,9 @@ func (l *Library) Load(target string) (path string, err error) {
if strings.HasPrefix(target, "riscv32-") {
args = append(args, "-march=rv32imac", "-mabi=ilp32", "-fforce-enable-int128")
}
+ if strings.HasPrefix(target, "riscv64-") {
+ args = append(args, "-march=rv64gc", "-mabi=lp64")
+ }
// Compile all sources.
var objs []string