From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: deepak1556 <hop2deep@gmail.com>
Date: Mon, 1 Sep 2025 03:12:06 +0900
Subject: chore: exclude electron_node folder from exit-time-destructors

Refs https://issues.chromium.org/issues/430332953
It contains multiple third_party dependencies that doesn't
align with the chromium style guide.

diff --git a/deps/ada/unofficial.gni b/deps/ada/unofficial.gni
index ab7dc27de3e304f6d912d5834da47e3b4eb25495..b6c0fd4ceee989dac55c7d54e52fef183ab4621c 100644
--- a/deps/ada/unofficial.gni
+++ b/deps/ada/unofficial.gni
@@ -20,6 +20,7 @@ template("ada_gn_build") {
   source_set(target_name) {
     forward_variables_from(invoker, "*")
     public_configs = [ ":ada_config" ]
+    configs += [ "//build/config/compiler:no_exit_time_destructors" ]
     sources = gypi_values.ada_sources
   }
 }
diff --git a/unofficial.gni b/unofficial.gni
index 4ab316e45bd84e43a53335df60f847b17fe6c2fa..def9a302830e493e51cc2b3588816fcbd3a1bb51 100644
--- a/unofficial.gni
+++ b/unofficial.gni
@@ -143,7 +143,10 @@ template("node_gn_build") {
                             [ "node.gyp" ])
 
   source_set("libnode") {
-    configs += [ ":node_internal_config" ]
+    configs += [
+      ":node_internal_config",
+      "//build/config/compiler:no_exit_time_destructors"
+    ]
     public_configs = [
       ":node_external_config",
       "deps/googletest:googletest_config",
@@ -364,6 +367,7 @@ template("node_gn_build") {
       "src/embedded_data.h",
     ]
     include_dirs = [ "src", "tools" ]
+    configs += [ "//build/config/compiler:no_exit_time_destructors" ]
 
     if (!is_win) {
       defines += [ "NODE_JS2C_USE_STRING_LITERALS" ]
