1# Copyright 2023 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/config/v8_target_cpu.gni") 6 7if (current_cpu == "riscv64" || v8_current_cpu == "riscv64" || 8 current_cpu == "riscv32" || v8_current_cpu == "riscv32") { 9 declare_args() { 10 # RISCV Vector extension compilation flag. 11 riscv_use_rvv = false 12 13 # RISCV Vector extension VELEN. Possible values are: 14 # 128 15 # 256 16 # 512 17 # 1024 18 riscv_rvv_vlen = 128 19 20 # RISCV profile compilation flag. Possible values are: 21 # rv64gc 22 # rvau22 23 riscv_profile = "rv64gc" 24 25 # RISCV B extension compilation flag. 26 # See https://github.com/riscv/riscv-bitmanip/blob/main/bitmanip/bitmanip.adoc#colophon 27 riscv_use_zba = false 28 riscv_use_zbb = false 29 riscv_use_zbs = false 30 } 31} 32