From 40318e547887e8b2b30514f36aa7425dc0c18d24 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 13 Apr 2023 15:37:44 +0900 Subject: [PATCH] Add build/config/riscv.gni Required for building latest V8. --- build/config/riscv.gni | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 build/config/riscv.gni diff --git a/build/config/riscv.gni b/build/config/riscv.gni new file mode 100644 index 0000000..b9597a0 --- /dev/null +++ b/build/config/riscv.gni @@ -0,0 +1,19 @@ +# Copyright 2023 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//build/config/v8_target_cpu.gni") + +if (current_cpu == "riscv64" || v8_current_cpu == "riscv64") { + declare_args() { + # RISCV Vector extension compilation flag. + riscv_use_rvv = false + + # RISCV Vector extension VELEN. Possible values are: + # 128 + # 256 + # 512 + # 1024 + riscv_rvv_vlen = 128 + } +}