Skip to content

Commit 6f49c80

Browse files
codebyteretargos
authored andcommitted
build: use variable for simdutf path
PR-URL: #56196 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Cheng Zhao <zcbenz@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2314e49 commit 6f49c80

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

node.gni

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ declare_args() {
77
# The location of Node.js in source code tree.
88
node_path = "//node"
99

10-
# The location of V8, use the one from node's deps by default.
10+
# The location of V8 - use the one from node's deps by default.
1111
node_v8_path = "$node_path/deps/v8"
1212

13+
# The location of OpenSSL - use the one from node's deps by default.
1314
node_openssl_path = "$node_path/deps/openssl"
1415

16+
# The location of simdutf - use the one from node's deps by default.
17+
node_simdutf_path = "$node_path/deps/simdutf"
18+
1519
# The NODE_MODULE_VERSION defined in node_version.h.
1620
node_module_version = exec_script("$node_path/tools/getmoduleversion.py", [], "value")
1721

unofficial.gni

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ template("node_gn_build") {
158158
"deps/nghttp2",
159159
"deps/ngtcp2",
160160
"deps/postject",
161-
"deps/simdutf",
162161
"deps/sqlite",
163162
"deps/uvwasi",
164163
"//third_party/zlib",
164+
"$node_simdutf_path",
165165
"$node_v8_path:v8_libplatform",
166166
]
167167

@@ -300,8 +300,8 @@ template("node_gn_build") {
300300

301301
executable("node_js2c") {
302302
deps = [
303-
"deps/simdutf",
304303
"deps/uv",
304+
"$node_simdutf_path",
305305
]
306306
sources = [
307307
"tools/js2c.cc",
@@ -358,7 +358,7 @@ template("node_gn_build") {
358358
"deps/googletest",
359359
"deps/googletest:gtest_main",
360360
"deps/nbytes",
361-
"deps/simdutf",
361+
"$node_simdutf_path",
362362
]
363363

364364
sources = gypi_values.node_cctest_sources

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy