electron/patches/common/v8/build_gn.patch

29 lines
835 B
Diff
Raw Normal View History

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
diff --git a/BUILD.gn b/BUILD.gn
2019-02-04 05:49:22 +00:00
index 16e0b60ca784417321871cb2e192b74fba3b3131..ee2607fad94220c6390b129ee2f069775b00a5d2 100644
--- a/BUILD.gn
+++ b/BUILD.gn
2019-01-16 18:09:10 +00:00
@@ -236,7 +236,7 @@ config("internal_config") {
2018-09-21 00:30:26 +00:00
2019-01-09 00:53:35 +00:00
configs = [ "//build/config/compiler:wexit_time_destructors" ]
- if (is_component_build) {
+ if (is_component_build || is_electron_build) {
2019-01-09 00:53:35 +00:00
defines = [ "BUILDING_V8_SHARED" ]
}
}
2019-02-04 05:49:22 +00:00
@@ -3387,6 +3387,8 @@ if (v8_use_snapshot && current_toolchain == v8_snapshot_toolchain) {
configs = [ ":internal_config" ]
+ configs += [ "//electron/build/config:build_time_executable" ]
+
deps = [
":v8_base",
":v8_init",