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 59ab7810e71916e8f0f2d69f06e3c2c3ebc99030..b144e800c94956429ca85fc0aefe6539a6246e4b 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. @@ -437,6 +440,7 @@ default_compiler_configs = [
  19. "//build/config/compiler:thin_archive",
  20. "//build/config/coverage:default_coverage",
  21. "//build/config/sanitizers:default_sanitizer_flags",
  22. + "//electron/build/config:mas_build",
  23. ]
  24. if (is_win) {