electron/patches/common/v8/build_gn.patch

23 lines
550 B
Diff
Raw Normal View History

diff --git a/BUILD.gn b/BUILD.gn
2018-09-21 00:30:26 +00:00
index 443694d880..d0ba5ed04e 100644
--- a/BUILD.gn
+++ b/BUILD.gn
2018-09-21 00:30:26 +00:00
@@ -212,7 +212,7 @@ config("internal_config") {
defines = []
- if (is_component_build) {
+ if (is_component_build || is_electron_build) {
2018-09-21 00:30:26 +00:00
defines += [ "BUILDING_V8_SHARED" ]
}
}
2018-09-21 00:30:26 +00:00
@@ -3138,6 +3138,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",