2025-05-10 21:58:58 +08:00

67 lines
2.5 KiB
Diff

From 733559e6f2c26ccbce97354a2341b14c63563dab 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 52504f4f6f009..40425d63454f3 100644
--- a/tools/v8_context_snapshot/BUILD.gn
+++ b/tools/v8_context_snapshot/BUILD.gn
@@ -44,6 +44,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",
"root_out_dir") +
"/v8_context_snapshot_generator",
diff --git a/v8/BUILD.gn b/v8/BUILD.gn
index 316bcb4d3c7..18dbd4b885e 100644
--- a/v8/BUILD.gn
+++ b/v8/BUILD.gn
@@ -2000,6 +2000,7 @@ template("run_torque") {
}
args = [
+ "./v8-qemu-wrapper.sh",
"./" + rebase_path(
get_label_info(":torque($toolchain)", "root_out_dir") + "/torque",
root_build_dir),
@@ -2132,6 +2133,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)",
@@ -2171,6 +2173,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),
@@ -6471,6 +6474,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)",