Skip to content

Commit 4aca4e2

Browse files
committed
Remove legacy http_parser
nodejs/node#29589
1 parent 5f8b253 commit 4aca4e2

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

patches/node/build_add_gn_build_files.patch

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ new file mode 100644
1010
index 0000000000000000000000000000000000000000..99192976f2bdfd900240aa58b8989fe2c9d8c771
1111
--- /dev/null
1212
+++ b/BUILD.gn
13-
@@ -0,0 +1,361 @@
13+
@@ -0,0 +1,360 @@
1414
+import("//electron/build/asar.gni")
1515
+import("//v8/gni/v8.gni")
1616
+
@@ -205,7 +205,6 @@ index 0000000000000000000000000000000000000000..99192976f2bdfd900240aa58b8989fe2
205205
+ ":node_js2c",
206206
+ "deps/cares",
207207
+ "deps/histogram",
208-
+ "deps/http_parser",
209208
+ "deps/llhttp",
210209
+ "deps/nghttp2",
211210
+ "deps/uvwasi",
@@ -532,25 +531,6 @@ index 0000000000000000000000000000000000000000..e741a2a9c238a782a674ddcb9a1f98de
532531
+ "src/hdr_histogram.h",
533532
+ ]
534533
+}
535-
diff --git a/deps/http_parser/BUILD.gn b/deps/http_parser/BUILD.gn
536-
new file mode 100644
537-
index 0000000000000000000000000000000000000000..da9e2b42dccacc1ed9b00202c1ff73ebc60d0e8a
538-
--- /dev/null
539-
+++ b/deps/http_parser/BUILD.gn
540-
@@ -0,0 +1,13 @@
541-
+config("http_parser_config") {
542-
+ defines = [ "HTTP_PARSER_STRICT=0" ]
543-
+ include_dirs = [ "." ]
544-
+}
545-
+
546-
+static_library("http_parser") {
547-
+ include_dirs = [ "." ]
548-
+ public_configs = [ ":http_parser_config" ]
549-
+ cflags_c = [ "-Wno-string-conversion" ]
550-
+ sources = [
551-
+ "http_parser.c",
552-
+ ]
553-
+}
554534
diff --git a/deps/llhttp/BUILD.gn b/deps/llhttp/BUILD.gn
555535
new file mode 100644
556536
index 0000000000000000000000000000000000000000..ce15bc57093caa1bd84ea77e7438e892fb916427

0 commit comments

Comments
 (0)