Skip to content

Commit 045cb86

Browse files
StefanStojanoviclukekarrys
authored andcommitted
feat: prohibit compiling with ClangCL on Windows (#3098)
Disables trying to compile with ClangCL on Windows. Was required to enable native tests in the Node.js CI for the ClangCL produced binaries. Refs: nodejs/node#55784
1 parent e559181 commit 045cb86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/create-config-gypi.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ async function getCurrentConfigGypi ({ gyp, nodeDir, vsInfo, python }) {
9696
}
9797
}
9898
variables.msbuild_path = vsInfo.msBuild
99+
if (config.variables.clang === 1) {
100+
config.variables.clang = 0
101+
}
99102
}
100103

101104
// loop through the rest of the opts and add the unknown ones as variables.

0 commit comments

Comments
 (0)