2018-10-24 11:24:11 -07:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2019-01-12 06:30:43 +05:30
|
|
|
From: deepak1556 <hop2deep@gmail.com>
|
|
|
|
Date: Fri, 4 Jan 2019 15:50:24 +0530
|
2018-10-24 11:24:11 -07:00
|
|
|
Subject: build-torque-with-x64-toolchain-on-arm.patch
|
|
|
|
|
|
|
|
torque binary has to be run during the build.
|
|
|
|
|
2018-10-03 16:34:44 -04:00
|
|
|
diff --git a/BUILD.gn b/BUILD.gn
|
2019-02-27 03:05:27 +05:30
|
|
|
index b70c09aa34aa7547e7d26d9e35795904a17c092f..ff8d1fbeabfd9730df4488981397c810af099d7e 100644
|
2018-10-03 16:34:44 -04:00
|
|
|
--- a/BUILD.gn
|
|
|
|
+++ b/BUILD.gn
|
2019-02-18 10:02:50 +00:00
|
|
|
@@ -184,7 +184,9 @@ declare_args() {
|
2019-01-08 16:53:35 -08:00
|
|
|
|
2019-01-12 06:30:43 +05:30
|
|
|
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 06:30:43 +05:30
|
|
|
v8_generator_toolchain = "//build/toolchain/linux:clang_x64"
|
|
|
|
}
|
2019-01-08 16:53:35 -08:00
|
|
|
|
2019-02-27 03:05:27 +05:30
|
|
|
@@ -3402,7 +3404,7 @@ if (v8_use_snapshot && current_toolchain == v8_snapshot_toolchain) {
|
2018-10-03 16:34:44 -04:00
|
|
|
}
|
|
|
|
}
|
2019-01-08 16:53:35 -08:00
|
|
|
|
2018-10-03 16:34:44 -04:00
|
|
|
-if (current_toolchain == v8_snapshot_toolchain) {
|
2019-02-18 10:02:50 +00:00
|
|
|
+if (current_toolchain == v8_generator_toolchain) {
|
2018-10-03 16:34:44 -04:00
|
|
|
v8_executable("torque") {
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|