2018-10-24 18:24:11 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2019-01-12 01:00:43 +00:00
|
|
|
From: deepak1556 <hop2deep@gmail.com>
|
2019-02-14 16:32:03 +00:00
|
|
|
Date: Thu, 21 Feb 2019 00:06:32 +0530
|
2018-10-24 18:24:11 +00:00
|
|
|
Subject: build-torque-with-x64-toolchain-on-arm.patch
|
|
|
|
|
|
|
|
torque binary has to be run during the build.
|
|
|
|
|
2018-10-03 20:34:44 +00:00
|
|
|
diff --git a/BUILD.gn b/BUILD.gn
|
2019-03-21 15:45:22 +00:00
|
|
|
index d3dbe37d0a145921dddaea72e394c87826d6d5fe..61f952f1a577b17c6063996fd1e17a195714bf5a 100644
|
2018-10-03 20:34:44 +00:00
|
|
|
--- a/BUILD.gn
|
|
|
|
+++ b/BUILD.gn
|
2019-02-14 16:32:03 +00:00
|
|
|
@@ -178,7 +178,9 @@ declare_args() {
|
|
|
|
# the snapshot toolchain is the target toolchain and, hence, can't be used.
|
2019-01-12 01:00:43 +00:00
|
|
|
v8_generator_toolchain = v8_snapshot_toolchain
|
|
|
|
if (host_cpu == "x64" &&
|
|
|
|
- (v8_current_cpu == "mips" || v8_current_cpu == "mips64")) {
|
|
|
|
+ (v8_current_cpu == "mips" || v8_current_cpu == "mips64" ||
|
2019-02-18 10:02:50 +00:00
|
|
|
+ v8_snapshot_toolchain == "//build/toolchain/linux:clang_arm" ||
|
|
|
|
+ v8_snapshot_toolchain == "//build/toolchain/linux:clang_arm64")) {
|
2019-01-12 01:00:43 +00:00
|
|
|
v8_generator_toolchain = "//build/toolchain/linux:clang_x64"
|
|
|
|
}
|
2019-01-09 00:53:35 +00:00
|
|
|
|
2019-03-21 15:45:22 +00:00
|
|
|
@@ -3545,7 +3547,7 @@ if (v8_use_snapshot && current_toolchain == v8_snapshot_toolchain) {
|
2018-10-03 20:34:44 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-09 00:53:35 +00:00
|
|
|
|
2018-10-03 20:34:44 +00:00
|
|
|
-if (current_toolchain == v8_snapshot_toolchain) {
|
2019-02-18 10:02:50 +00:00
|
|
|
+if (current_toolchain == v8_generator_toolchain) {
|
2018-10-03 20:34:44 +00:00
|
|
|
v8_executable("torque") {
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|