electron/patches/common/v8/build-torque-with-x64-toolchain-on-arm.patch

40 lines
1.3 KiB
Diff
Raw Normal View History

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: deepak1556 <hop2deep@gmail.com>
Date: Fri, 4 Jan 2019 15:50:24 +0530
Subject: build-torque-with-x64-toolchain-on-arm.patch
torque binary has to be run during the build.
diff --git a/BUILD.gn b/BUILD.gn
2019-01-24 09:42:21 +00:00
index 8bdc4ac595e82e1272ade2f715188bcb07653c82..b593ac20ef722146ca0c50ba01d6ee6b8d6d3035 100644
--- a/BUILD.gn
+++ b/BUILD.gn
2019-01-16 18:09:10 +00:00
@@ -184,7 +184,8 @@ declare_args() {
2019-01-09 00:53:35 +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" ||
+ v8_current_cpu == "arm" || v8_current_cpu == "arm64")) {
v8_generator_toolchain = "//build/toolchain/linux:clang_x64"
}
2019-01-09 00:53:35 +00:00
2019-01-24 09:42:21 +00:00
@@ -3351,7 +3352,7 @@ if (v8_monolithic) {
# Executables
#
2019-01-09 00:53:35 +00:00
-if (current_toolchain == v8_generator_toolchain) {
+if (current_toolchain == current_toolchain) {
v8_executable("bytecode_builtins_list_generator") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
2019-01-09 00:53:35 +00:00
2019-01-24 09:42:21 +00:00
@@ -3401,7 +3402,7 @@ if (v8_use_snapshot && current_toolchain == v8_snapshot_toolchain) {
}
}
2019-01-09 00:53:35 +00:00
-if (current_toolchain == v8_snapshot_toolchain) {
+if (current_toolchain == current_toolchain) {
v8_executable("torque") {
visibility = [ ":*" ] # Only targets in this file can depend on this.