Skip to content

Commit

Permalink
builder: add support for 64-bit RISC-V
Browse files Browse the repository at this point in the history
  • Loading branch information
yannishuber authored and deadprogram committed Jul 7, 2020
1 parent a05fc10 commit e1757e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builder/library.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1757e0

Please sign in to comment.