Skip to content

Commit

Permalink
Fix Nim Build for riscv64
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jan 2, 2024
1 parent 04f2fec commit e0d5d38
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,19 @@ proc read_config(cfg: string): DotConfig =
case arch
of "arm", "arm64":
result.arch = arch
of "risc-v":
result.arch = "riscv32"
of "sim":
if defined(amd64):
result.arch = "amd64"
elif defined(aarch64):
result.arch = "arm64"
result.isSim = true
of "ARCH_FAMILY":
let arch = keyval[1].strip(chars = {'"'})
case arch
of "rv32":
result.arch = "riscv32"
of "rv64":
result.arch = "riscv64"
of "DEBUG_NOOPT":
result.opt = oNone
of "DEBUG_FULLOPT":
Expand Down

0 comments on commit e0d5d38

Please sign in to comment.