fix: linker error missing uv__strtok (#38394)

fix: linker error missing uv__strtok

This symbol is referenced inside what seems to be dead code
in `uv__search_path` in third_party/electron_node/deps/uv/src/unix/core.c
When compiling in LTO mode, the reference is removed,
but not during a non-LTO build.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Bruno Pitrus <brunopitrus@hotmail.com>
This commit is contained in:
trop[bot]
2023-05-24 15:05:27 -04:00
committed by GitHub
parent 2ef49a5333
commit 6e30bf2ce9

View File

@@ -974,10 +974,10 @@ index 0000000000000000000000000000000000000000..bfbd4e656db1a6c73048443f96f1d576
+}
diff --git a/deps/uv/BUILD.gn b/deps/uv/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..d6bed57461820ce08391fc424a1f842bd282fa75
index 0000000000000000000000000000000000000000..e90becfab51beb090394db9d3c94d73e546b39ef
--- /dev/null
+++ b/deps/uv/BUILD.gn
@@ -0,0 +1,196 @@
@@ -0,0 +1,198 @@
+config("libuv_config") {
+ include_dirs = [ "include" ]
+
@@ -1047,6 +1047,8 @@ index 0000000000000000000000000000000000000000..d6bed57461820ce08391fc424a1f842b
+ "src/random.c",
+ "src/strscpy.c",
+ "src/strscpy.h",
+ "src/strtok.c",
+ "src/strtok.h",
+ "src/threadpool.c",
+ "src/timer.c",
+ "src/uv-common.c",