2018-10-24 18:24:11 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Aleksei Kuzmin <alkuzmin@microsoft.com>
|
|
|
|
Date: Mon, 22 Oct 2018 10:47:13 -0700
|
|
|
|
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
|
2018-10-25 02:27:11 +00:00
|
|
|
index c1b08958b500da1910a8067198cdec7650534f20..78e672e18eff27a3777bd0c0adc94e88a6eb126a 100644
|
2018-10-03 20:34:44 +00:00
|
|
|
--- a/BUILD.gn
|
|
|
|
+++ b/BUILD.gn
|
2018-10-25 02:27:11 +00:00
|
|
|
@@ -914,7 +914,8 @@ action("run_torque") {
|
2018-10-03 20:34:44 +00:00
|
|
|
# is the target toolchain and, hence, can't be used.
|
|
|
|
v8_torque_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_torque_toolchain = "//build/toolchain/linux:clang_x64"
|
|
|
|
}
|
|
|
|
|
2018-10-25 02:27:11 +00:00
|
|
|
@@ -3256,7 +3257,7 @@ if (v8_use_snapshot && current_toolchain == v8_snapshot_toolchain) {
|
2018-10-03 20:34:44 +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.
|
|
|
|
|