forked from starfive-tech/riscv-nwjs-patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0021-v8-settings.patch
27 lines (24 loc) · 934 Bytes
/
0021-v8-settings.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From f3fc8ee028d27beee7a7b5b57e408c0671b6e857 Mon Sep 17 00:00:00 2001
From: Rebecca Chang Swee Fun <[email protected]>
Date: Thu, 28 Apr 2022 01:04:27 +0000
Subject: [PATCH 21/21] v8 settings
Signed-off-by: Rebecca Chang Swee Fun <[email protected]>
---
build/config/v8_target_cpu.gni | 3 +++
1 file changed, 3 insertions(+)
diff --git a/build/config/v8_target_cpu.gni b/build/config/v8_target_cpu.gni
index 305981f3fa538..44b7700935cc6 100644
--- a/build/config/v8_target_cpu.gni
+++ b/build/config/v8_target_cpu.gni
@@ -49,6 +49,9 @@ if (v8_target_cpu == "") {
# code that will be run under a simulator, then the generated code
# also gets the benefits of the sanitizer.
v8_target_cpu = "arm64"
+ } else if (current_toolchain ==
+ "//build/toolchain/linux:clang_x86_v8_riscv64") {
+ v8_target_cpu = "riscv64"
} else {
v8_target_cpu = target_cpu
}
--
2.25.1