build_gn.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Ales Pergl <[email protected]>
  3. Date: Thu, 20 Sep 2018 17:44:29 -0700
  4. Subject: build_gn.patch
  5. diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn
  6. index f89e7e831b79f82bd11a5dd8cee6ab49d8de724e..f8a611bf0676ce323cdbb5d639333df9875dd0ca 100644
  7. --- a/build/config/BUILDCONFIG.gn
  8. +++ b/build/config/BUILDCONFIG.gn
  9. @@ -123,6 +123,9 @@ if (current_os == "") {
  10. # even if the value is overridden, which is wasteful. See first bullet.
  11. declare_args() {
  12. + is_electron_build = false
  13. + is_mas_build = false
  14. +
  15. # Set to enable the official build level of optimization. This has nothing
  16. # to do with branding, but enables an additional level of optimization above
  17. # release (!is_debug). This might be better expressed as a tri-state
  18. @@ -438,6 +441,7 @@ default_compiler_configs = [
  19. "//build/config/compiler:default_init_stack_vars",
  20. "//build/config/coverage:default_coverage",
  21. "//build/config/sanitizers:default_sanitizer_flags",
  22. + "//electron/build/config:mas_build",
  23. ]
  24. if (is_win) {