diff options
-rwxr-xr-x | configure | 1 | ||||
-rw-r--r-- | driver.c | 3 | ||||
-rw-r--r-- | targ.c | 4 |
3 files changed, 8 insertions, 0 deletions
@@ -55,6 +55,7 @@ case "$target" in test "${DEFAULT_DYNAMIC_LINKER+set}" || case "$target" in x86_64*) DEFAULT_DYNAMIC_LINKER=/lib/ld-musl-x86_64.so.1 ;; aarch64*) DEFAULT_DYNAMIC_LINKER=/lib/ld-musl-aarch64.so.1 ;; + riscv64*) DEFAULT_DYNAMIC_LINKER=/lib/ld-musl-riscv64.so.1 ;; *) fail "unsuported target '$target'" esac startfiles='"-l", ":crt1.o", "-l", ":crti.o"' @@ -390,6 +390,9 @@ main(int argc, char *argv[]) } else if (hasprefix(target, "aarch64-")) { arch = "aarch64"; qbearch = "arm64"; + } else if (hasprefix(target, "riscv64-")) { + arch = "riscv64"; + qbearch = "rv64"; } else { fatal("unsupported target '%s'", target); } @@ -14,6 +14,10 @@ static struct target alltargs[] = { .name = "aarch64", .typewchar = &typeuint, }, + { + .name = "riscv64", + .typewchar = &typeint, + }, }; void |