hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
From b611909b9cc2b29afa64ace5933fcf8dffc0b623 Mon Sep 17 00:00:00 2001
From: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Date: Tue, 7 Nov 2017 15:24:32 +0100
Subject: [PATCH] v8: qemu wrapper
 
The patch below makes the V8 binaries run during the build be invoked through
QEMU, as they are built for the target.
 
Upstream-Status: Inappropriate [embedder specific]
 
Signed-off-by: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Signed-off-by: Maksim Sisov <msisov@igalia.com>
---
 tools/v8_context_snapshot/BUILD.gn | 1 +
 v8/BUILD.gn                        | 4 ++++
 2 files changed, 5 insertions(+)
 
diff --git a/tools/v8_context_snapshot/BUILD.gn b/tools/v8_context_snapshot/BUILD.gn
index 6e86a543558c9..eee89b37064e2 100644
--- a/tools/v8_context_snapshot/BUILD.gn
+++ b/tools/v8_context_snapshot/BUILD.gn
@@ -56,6 +56,7 @@ if (use_v8_context_snapshot) {
     output_path = rebase_path(output_file, root_build_dir)
 
     args = [
+      "./v8-qemu-wrapper.sh",
       "./" + rebase_path(
               get_label_info(
                       ":v8_context_snapshot_generator($v8_snapshot_toolchain)",
 
diff --git a/v8/BUILD.gn b/v8/BUILD.gn
index 5c7d931b27..aad8800dce 100644
--- a/v8/BUILD.gn
+++ b/v8/BUILD.gn
diff --git a/v8/BUILD.gn b/v8/BUILD.gn
@@ -1721,6 +1721,7 @@ template("run_torque") {
     }
 
     args = [
+      "./v8-qemu-wrapper.sh",
       "./" + rebase_path(
               get_label_info(":torque($toolchain)", "root_out_dir") + "/torque",
               root_build_dir),
@@ -1853,6 +1854,7 @@ action("generate_bytecode_builtins_list") {
   outputs = [ "$target_gen_dir/builtins-generated/bytecodes-builtins-list.h" ]
   deps = [ ":bytecode_builtins_list_generator($v8_generator_toolchain)" ]
   args = [
+    "./v8-qemu-wrapper.sh",
     "./" + rebase_path(
             get_label_info(
                     ":bytecode_builtins_list_generator($v8_generator_toolchain)",
@@ -1898,6 +1900,7 @@ template("run_mksnapshot") {
     data = []
 
     args = [
+      "./v8-qemu-wrapper.sh",
       "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)",
                                         "root_out_dir") + "/mksnapshot",
                          root_build_dir),
@@ -5611,6 +5614,7 @@ if (v8_enable_i18n_support) {
     outputs = [ output_file ]
 
     args = [
+      "./v8-qemu-wrapper.sh",
       "./" + rebase_path(
               get_label_info(
                       ":gen-regexp-special-case($v8_generator_toolchain)",