Skip to content

Commit

Permalink
Unconditionally include report feature
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jun 15, 2020
1 parent 7bae4cf commit 7b7fa90
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions patches/node/build_add_gn_build_files.patch
Expand Up @@ -10,17 +10,14 @@ new file mode 100644
index 0000000000000000000000000000000000000000..d1dcdfeb14994abb07914c2f8e927c67d1b463ab
--- /dev/null
+++ b/BUILD.gn
@@ -0,0 +1,376 @@
@@ -0,0 +1,360 @@
+import("//electron/build/asar.gni")
+import("//v8/gni/v8.gni")
+
+declare_args() {
+ # Enable the V8 inspector protocol for use with node.
+ node_enable_inspector = true
+
+ # Enable diagnostic reporting withing Node.js
+ node_report = true
+
+ # Build node with SSL support.
+ # The variable is called "openssl" for parity with node's GYP build.
+ node_use_openssl = true
Expand Down Expand Up @@ -126,11 +123,6 @@ index 0000000000000000000000000000000000000000..d1dcdfeb14994abb07914c2f8e927c67
+ } else {
+ defines += [ "NODE_USE_V8_PLATFORM=0" ]
+ }
+ if (node_report) {
+ defines += [ "NODE_REPORT=1" ]
+ } else {
+ defines += [ "NODE_REPORT=0" ]
+ }
+}
+
+config("node_lib_config") {
Expand Down Expand Up @@ -262,14 +254,6 @@ index 0000000000000000000000000000000000000000..d1dcdfeb14994abb07914c2f8e927c67
+ libs += [ "CoreFoundation.framework" ]
+ }
+
+ if (node_report) {
+ sources += [
+ "src/node_report.cc",
+ "src/node_report_module.cc",
+ "src/node_report_utils.cc",
+ ]
+ }
+
+ if (node_enable_inspector) {
+ sources += [
+ "src/inspector_agent.cc",
Expand Down Expand Up @@ -882,7 +866,7 @@ new file mode 100644
index 0000000000000000000000000000000000000000..eb708f8d5095332b3d860987fa025b23776a37eb
--- /dev/null
+++ b/filenames.json
@@ -0,0 +1,509 @@
@@ -0,0 +1,513 @@
+// This file is automatically generated by generate_gn_filenames_json.py
+// DO NOT EDIT
+{
Expand Down Expand Up @@ -1262,6 +1246,9 @@ index 0000000000000000000000000000000000000000..eb708f8d5095332b3d860987fa025b23
+ "src/node_process_events.cc",
+ "src/node_process_methods.cc",
+ "src/node_process_object.cc",
+ "src/node_report.cc",
+ "src/node_report_module.cc",
+ "src/node_report_utils.cc",
+ "src/node_serdes.cc",
+ "src/node_sockaddr.cc",
+ "src/node_stat_watcher.cc",
Expand Down Expand Up @@ -1352,6 +1339,7 @@ index 0000000000000000000000000000000000000000..eb708f8d5095332b3d860987fa025b23
+ "src/node_perf_common.h",
+ "src/node_platform.h",
+ "src/node_process.h",
+ "src/node_report.h",
+ "src/node_revert.h",
+ "src/node_root_certs.h",
+ "src/node_sockaddr.h",
Expand Down

0 comments on commit 7b7fa90

Please sign in to comment.