From 8771f3f27c3d26a1e1301524fd990d00aa0fc55b Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Tue, 28 Jul 2026 13:13:07 +0100 Subject: [PATCH] fix: Remove V8_DEPRECATION_WARNINGS define to fix build with GCC <= 12 --- binding.gyp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/binding.gyp b/binding.gyp index 7cfc914..82f9d49 100644 --- a/binding.gyp +++ b/binding.gyp @@ -3,6 +3,10 @@ { "target_name": "stack-trace", "sources": [ "module.cc" ], + # With V8_DEPRECATION_WARNINGS defined, the class-level V8_DEPRECATED + # annotations in the V8 15+ (Electron >= 43) headers expand to a mix of + # C++11 and GNU attributes that GCC <= 12 cannot parse + "defines!": [ "V8_DEPRECATION_WARNINGS=1" ], "conditions": [ ["OS=='win'", { "defines": [