build_gn.patch 786 B

12345678910111213141516171819202122232425262728
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Ales Pergl <[email protected]>
  3. Date: Mon, 22 Oct 2018 10:47:12 -0700
  4. Subject: build_gn.patch
  5. diff --git a/BUILD.gn b/BUILD.gn
  6. index 443694d88075d59d6e8db7fa4bedc3a812fdafc4..d0ba5ed04e7126deae4a0ab9ee8943cda5ea42e3 100644
  7. --- a/BUILD.gn
  8. +++ b/BUILD.gn
  9. @@ -212,7 +212,7 @@ config("internal_config") {
  10. defines = []
  11. - if (is_component_build) {
  12. + if (is_component_build || is_electron_build) {
  13. defines += [ "BUILDING_V8_SHARED" ]
  14. }
  15. }
  16. @@ -3138,6 +3138,8 @@ if (v8_use_snapshot && current_toolchain == v8_snapshot_toolchain) {
  17. configs = [ ":internal_config" ]
  18. + configs += [ "//electron/build/config:build_time_executable" ]
  19. +
  20. deps = [
  21. ":v8_base",
  22. ":v8_init",