Skip to content

Commit 8d42b7c

Browse files
authored
test: search cctest files
nodejs/node#56791
1 parent 9cc936f commit 8d42b7c

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

patches/node/build_add_gn_build_files.patch

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,14 @@ index 65d0e1be42f0a85418491ebb548278cf431aa6a0..d4a31342f1c6107b029394c6e1d00a1d
254254
files = SearchFiles(*sys.argv[2:])
255255
files = [ os.path.relpath(x, sys.argv[1]) for x in files ]
256256
+ files = [os.path.normpath(x).replace(os.sep, '/') for x in files]
257-
print('\n'.join(files))
258-
except Exception as e:
259-
print(str(e))
257+
# Apply the same transform in SearchFiles after relpath
258+
if sys.platform == 'win32':
259+
files = [ x.replace('\\', '/') for x in files ]
260260
diff --git a/unofficial.gni b/unofficial.gni
261261
index 9e496d99d7141bf42ef7374a3c676c7b333eeeab..a2f3a769ceaa08db6d7438223884dc5aeab1340d 100644
262262
--- a/unofficial.gni
263263
+++ b/unofficial.gni
264-
@@ -145,6 +145,7 @@ template("node_gn_build") {
264+
@@ -146,6 +146,7 @@ template("node_gn_build") {
265265
public_deps = [
266266
"deps/ada",
267267
"deps/uv",
@@ -289,7 +289,7 @@ index 9e496d99d7141bf42ef7374a3c676c7b333eeeab..a2f3a769ceaa08db6d7438223884dc5a
289289
"$target_gen_dir/node_javascript.cc",
290290
] + gypi_values.node_sources
291291

292-
@@ -185,11 +189,12 @@ template("node_gn_build") {
292+
@@ -190,7 +190,7 @@ template("node_gn_build") {
293293
}
294294
if (node_use_openssl) {
295295
deps += [ "deps/ncrypto" ]
@@ -298,11 +298,6 @@ index 9e496d99d7141bf42ef7374a3c676c7b333eeeab..a2f3a769ceaa08db6d7438223884dc5a
298298
sources += gypi_values.node_crypto_sources
299299
}
300300
if (node_enable_inspector) {
301-
deps += [
302-
+ "src/inspector:crdtp",
303-
"src/inspector:node_protocol_generated_sources",
304-
"src/inspector:v8_inspector_compress_protocol_json",
305-
]
306301
@@ -282,6 +287,7 @@ template("node_gn_build") {
307302
}
308303

0 commit comments

Comments
 (0)