Skip to content

Commit

Permalink
fix: nan tests failing on node headers missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Nov 17, 2023
1 parent c2f512b commit 1adcf32
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions patches/node/build_add_gn_build_files.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1172,10 +1172,10 @@ index 0000000000000000000000000000000000000000..2c9d2826c85bdd033f1df1d6188df636
+}
diff --git a/filenames.json b/filenames.json
new file mode 100644
index 0000000000000000000000000000000000000000..63be54f91e79cba84ac024f965372d2428905751
index 0000000000000000000000000000000000000000..dedbbdea74d94e81f9968f4d951a0ad217da82f8
--- /dev/null
+++ b/filenames.json
@@ -0,0 +1,731 @@
@@ -0,0 +1,733 @@
+// This file is automatically generated by generate_gn_filenames_json.py
+// DO NOT EDIT
+{
Expand Down Expand Up @@ -1226,6 +1226,7 @@ index 0000000000000000000000000000000000000000..63be54f91e79cba84ac024f965372d24
+ "//v8/include/v8-forward.h",
+ "//v8/include/v8-function-callback.h",
+ "//v8/include/v8-function.h",
+ "//v8/include/v8-handle-base.h",
+ "//v8/include/v8-initialization.h",
+ "//v8/include/v8-internal.h",
+ "//v8/include/v8-isolate.h",
Expand All @@ -1248,6 +1249,7 @@ index 0000000000000000000000000000000000000000..63be54f91e79cba84ac024f965372d24
+ "//v8/include/v8-regexp.h",
+ "//v8/include/v8-script.h",
+ "//v8/include/v8-snapshot.h",
+ "//v8/include/v8-source-location.h",
+ "//v8/include/v8-statistics.h",
+ "//v8/include/v8-template.h",
+ "//v8/include/v8-traced-handle.h",
Expand Down Expand Up @@ -2299,10 +2301,10 @@ index 0000000000000000000000000000000000000000..98d569e6ba6d85a29a215a8f9ce3c1f6
+ transformed_contents = contents.replace('internal/fs/', 'internal/original-fs/')
+ transformed_f.write(transformed_contents)
diff --git a/tools/install.py b/tools/install.py
index 11616e1bcac5308020eb68fdb811bfb86cb14dd5..845e6ce69d93983963a7a57117ecab3bd1a05e71 100755
index 11616e1bcac5308020eb68fdb811bfb86cb14dd5..74b01f8352021f1105c080dbbf8bb29121a13501 100755
--- a/tools/install.py
+++ b/tools/install.py
@@ -199,105 +199,106 @@ def headers(action):
@@ -199,105 +199,108 @@ def headers(action):
v8_headers = [
# The internal cppgc headers are depended on by the public
# ones, so they need to be included as well.
Expand Down Expand Up @@ -2465,6 +2467,7 @@ index 11616e1bcac5308020eb68fdb811bfb86cb14dd5..845e6ce69d93983963a7a57117ecab3b
+ '../../v8/include/v8-forward.h',
+ '../../v8/include/v8-function-callback.h',
+ '../../v8/include/v8-function.h',
+ '../../v8/include/v8-handle-base.h',
+ '../../v8/include/v8-initialization.h',
+ '../../v8/include/v8-internal.h',
+ '../../v8/include/v8-isolate.h',
Expand All @@ -2487,6 +2490,7 @@ index 11616e1bcac5308020eb68fdb811bfb86cb14dd5..845e6ce69d93983963a7a57117ecab3b
+ '../../v8/include/v8-regexp.h',
+ '../../v8/include/v8-script.h',
+ '../../v8/include/v8-snapshot.h',
+ '../../v8/include/v8-source-location.h',
+ '../../v8/include/v8-statistics.h',
+ '../../v8/include/v8-template.h',
+ '../../v8/include/v8-traced-handle.h',
Expand All @@ -2504,7 +2508,7 @@ index 11616e1bcac5308020eb68fdb811bfb86cb14dd5..845e6ce69d93983963a7a57117ecab3b
files_arg = [name for name in files_arg if name in v8_headers]
action(files_arg, dest)

@@ -324,7 +325,7 @@ def headers(action):
@@ -324,7 +327,7 @@ def headers(action):
if sys.platform.startswith('aix') or sys.platform == "os400":
action(['out/Release/node.exp'], 'include/node/')

Expand Down

0 comments on commit 1adcf32

Please sign in to comment.