浏览代码

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 年之前
父节点
当前提交
cb091cdcaf
共有 1 个文件被更改,包括 3 次插入0 次删除
  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 ==
   } else if (current_toolchain ==
              "//build/toolchain/linux:clang_x86_v8_mipsel") {
              "//build/toolchain/linux:clang_x86_v8_mipsel") {
     v8_target_cpu = "mipsel"
     v8_target_cpu = "mipsel"
+  } else if (current_toolchain ==
+             "//build/toolchain/linux:clang_x64_v8_riscv64") {
+    v8_target_cpu = "riscv64"
   } else if (is_msan) {
   } else if (is_msan) {
     # If we're running under a sanitizer, if we configure v8 to generate
     # 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
     # code that will be run under a simulator, then the generated code