Skip to content

Commit

Permalink
build, feat: add riscv64 compile option.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Jan 5, 2023
1 parent 4651c53 commit d8f0e2e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ usage()
echo "Options:"
echo " release, debug: "
echo " Specifies the build type."
echo " i386, amd64, arm, arm64, mips64, ppc64:"
echo " i386, amd64, arm, arm64, mips64, ppc64, riscv64:"
echo " Specifies the architecture for code generation."
echo " clean: "
echo " Clean the build folder."
Expand All @@ -25,7 +25,7 @@ usage()
for i in "$@"
do
case $i in
i386|amd64|arm|arm64|armv6|mips64|ppc64) BUILD_ARCH=$i
i386|amd64|arm|arm64|mips64|ppc64|riscv64) BUILD_ARCH=$i
;;
alpine) BUILD_ALPINE="alpine"
;;
Expand Down
2 changes: 1 addition & 1 deletion build_tools
1 change: 0 additions & 1 deletion v8/cmake/v8-riscv64-Linux.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,6 @@ set(src_list
${PROJECT_SOURCE_DIR}/src/compiler/backend/register-allocator.cc
${PROJECT_SOURCE_DIR}/src/compiler/backend/riscv/code-generator-riscv.cc
${PROJECT_SOURCE_DIR}/src/compiler/backend/riscv/instruction-scheduler-riscv.cc
${PROJECT_SOURCE_DIR}/src/compiler/backend/riscv/instruction-selector-riscv32.cc
${PROJECT_SOURCE_DIR}/src/compiler/backend/riscv/instruction-selector-riscv64.cc
${PROJECT_SOURCE_DIR}/src/compiler/backend/spill-placer.cc
${PROJECT_SOURCE_DIR}/src/compiler/basic-block-instrumentor.cc
Expand Down
1 change: 1 addition & 0 deletions v8/patch/mk_src.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ function gen_list(arch, os) {
break;
case "riscv64":
src_list = src_list.concat(riscv_list);
skip_name("^src/compiler/backend/riscv/instruction-selector-riscv32.cc");
break;
case "s390":
src_list = src_list.concat(s390_list);
Expand Down

0 comments on commit d8f0e2e

Please sign in to comment.