From 6209418ac5ad2ebe740676d1ab4226c8001f6fc8 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Fri, 29 Nov 2024 10:46:29 +0000 Subject: [PATCH] build: add no user defined deduction guides of CTAD check --- node.gyp | 1 + node.gypi | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/node.gyp b/node.gyp index b8bfebb562f5f4..1633ed2d832fc5 100644 --- a/node.gyp +++ b/node.gyp @@ -482,6 +482,7 @@ '-Wno-unused-parameter', '-Werror=undefined-inline', '-Werror=extra-semi', + '-Werror=ctad-maybe-unsupported', ], }, diff --git a/node.gypi b/node.gypi index c61e9b170a05c9..7ae62bd7e7134a 100644 --- a/node.gypi +++ b/node.gypi @@ -27,7 +27,11 @@ 'conditions': [ [ 'clang==1', { - 'cflags': [ '-Werror=undefined-inline', '-Werror=extra-semi'] + 'cflags': [ + '-Werror=undefined-inline', + '-Werror=extra-semi', + '-Werror=ctad-maybe-unsupported', + ], }], [ '"<(_type)"=="executable"', { 'msvs_settings': {