2018-10-24 11:24:11 -07:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Ales Pergl <alpergl@microsoft.com>
|
|
|
|
Date: Mon, 22 Oct 2018 10:47:12 -0700
|
|
|
|
Subject: build_gn.patch
|
|
|
|
|
|
|
|
|
2018-09-13 22:02:16 -07:00
|
|
|
diff --git a/BUILD.gn b/BUILD.gn
|
2019-03-21 22:31:30 -07:00
|
|
|
index b843e32765a93fe50ccc78427558daeb3447c2a8..1eefb5b89c8a91ee3a9eb9f4a5b22cc499d97539 100644
|
2018-09-13 22:02:16 -07:00
|
|
|
--- a/BUILD.gn
|
|
|
|
+++ b/BUILD.gn
|
2019-03-21 22:31:30 -07:00
|
|
|
@@ -246,7 +246,7 @@ config("internal_config") {
|
2019-02-14 22:02:03 +05:30
|
|
|
":v8_header_features",
|
|
|
|
]
|
2018-09-13 22:02:16 -07:00
|
|
|
|
|
|
|
- if (is_component_build) {
|
|
|
|
+ if (is_component_build || is_electron_build) {
|
2019-02-14 22:02:03 +05:30
|
|
|
defines += [ "BUILDING_V8_SHARED" ]
|
2018-09-13 22:02:16 -07:00
|
|
|
}
|
|
|
|
}
|
2019-03-21 22:31:30 -07:00
|
|
|
@@ -3558,6 +3558,8 @@ if (v8_use_snapshot && current_toolchain == v8_snapshot_toolchain) {
|
2018-09-13 22:02:16 -07:00
|
|
|
|
|
|
|
configs = [ ":internal_config" ]
|
|
|
|
|
|
|
|
+ configs += [ "//electron/build/config:build_time_executable" ]
|
|
|
|
+
|
|
|
|
deps = [
|
|
|
|
":v8_base",
|
|
|
|
":v8_init",
|