From 241e4a68d89e9d722b27f6732f9e0a8877cff0e2 Mon Sep 17 00:00:00 2001 From: StefanStojanovic Date: Fri, 25 Oct 2024 11:24:07 +0200 Subject: [PATCH] deps: enforce MSVC in node-gyp on Windows --- deps/npm/node_modules/node-gyp/lib/create-config-gypi.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/npm/node_modules/node-gyp/lib/create-config-gypi.js b/deps/npm/node_modules/node-gyp/lib/create-config-gypi.js index d598dea6e2e7fa..01a820e9f2f312 100644 --- a/deps/npm/node_modules/node-gyp/lib/create-config-gypi.js +++ b/deps/npm/node_modules/node-gyp/lib/create-config-gypi.js @@ -96,6 +96,9 @@ async function getCurrentConfigGypi ({ gyp, nodeDir, vsInfo, python }) { } } variables.msbuild_path = vsInfo.msBuild + if (config.variables.clang === 1) { + config.variables.clang = 0 + } } // loop through the rest of the opts and add the unknown ones as variables.