build_add_public_config_simdutf_config.patch 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Charles Kerr <[email protected]>
  3. Date: Mon, 9 Dec 2024 11:22:20 -0600
  4. Subject: build: add public config simdutf_config
  5. To avoid building two copies of simdutf, we have electron_node ignore
  6. third_party/electron_node/deps/simdutf and use
  7. third_party/simdutf instead.
  8. To accomplish this, we need to make simdutf's config public here
  9. for use by third_party/electron_node.
  10. diff --git a/third_party/simdutf/BUILD.gn b/third_party/simdutf/BUILD.gn
  11. index d88fe7e43ac2a8129702e58bd2cd2aea094452e3..3cbeb89587f37b0ebc3622258fea0161ebf1d7b2 100644
  12. --- a/third_party/simdutf/BUILD.gn
  13. +++ b/third_party/simdutf/BUILD.gn
  14. @@ -6,9 +6,14 @@ source_set("header") {
  15. sources = [ "simdutf.h" ]
  16. }
  17. +config("simdutf_config") {
  18. + include_dirs = [ "." ]
  19. +}
  20. +
  21. source_set("simdutf") {
  22. sources = [ "simdutf.cpp" ]
  23. public_deps = [ ":header" ]
  24. + public_configs = [ ":simdutf_config" ]
  25. cflags_cc = [
  26. "-Wno-unused-const-variable",
  27. "-Wno-unused-function",