Browse Source

build: config: add v8 target cpu for riscv64

Signed-off-by: Tien Hock Loh <tienhock.loh@starfivetech.com>
Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Tien Hock Loh 1 year ago
parent
commit
cb091cdcaf
1 changed files with 3 additions and 0 deletions
  1. 3 0
      build/config/v8_target_cpu.gni

+ 3 - 0
build/config/v8_target_cpu.gni

@@ -44,6 +44,9 @@ if (v8_target_cpu == "") {
   } else if (current_toolchain ==
              "//build/toolchain/linux:clang_x86_v8_mipsel") {
     v8_target_cpu = "mipsel"
+  } else if (current_toolchain ==
+             "//build/toolchain/linux:clang_x64_v8_riscv64") {
+    v8_target_cpu = "riscv64"
   } else if (is_msan) {
     # If we're running under a sanitizer, if we configure v8 to generate
     # code that will be run under a simulator, then the generated code