Skip to content

Commit

Permalink
riscv(misc): add support in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
infiWang committed Jul 3, 2024
1 parent fc54e02 commit 74fe9b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ FILES_JITLIB= bc.lua bcsave.lua dump.lua p.lua v.lua zone.lua \
dis_arm64be.lua dis_ppc.lua dis_mips.lua dis_mipsel.lua \
dis_mips64.lua dis_mips64el.lua \
dis_mips64r6.lua dis_mips64r6el.lua \
dis_riscv.lua dis_riscv64.lua \
vmdef.lua

ifeq (,$(findstring Windows,$(OS)))
Expand Down
8 changes: 8 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ CCOPT_arm=
CCOPT_arm64=
CCOPT_ppc=
CCOPT_mips=
CCOPT_riscv64=
#
#CCDEBUG=
# Uncomment the next line to generate debug information:
Expand Down Expand Up @@ -269,6 +270,9 @@ ifneq (,$(findstring LJ_TARGET_MIPS ,$(TARGET_TESTARCH)))
else
TARGET_LJARCH= mips
endif
else
ifneq (,$(findstring LJ_TARGET_RISCV64 ,$(TARGET_TESTARCH)))
TARGET_LJARCH= riscv64
else
$(error Unsupported target architecture)
endif
Expand All @@ -278,6 +282,7 @@ endif
endif
endif
endif
endif

ifneq (,$(findstring LJ_TARGET_PS3 1,$(TARGET_TESTARCH)))
TARGET_SYS= PS3
Expand Down Expand Up @@ -481,6 +486,9 @@ ifeq (ppc,$(TARGET_LJARCH))
DASM_AFLAGS+= -D ELFV2
endif
endif
ifneq (,$(findstring LJ_TARGET_RISCV64 ,$(TARGET_TESTARCH)))
DASM_AFLAGS+= -D RISCV64
endif
endif
endif

Expand Down

0 comments on commit 74fe9b0

Please sign in to comment.