Skip to content

Commit b0ac9bf

Browse files
authored
Explicitly drop support for old clang versions on Windows (GH-15415)
* Explicitly drop support for old clang versions on Windows This ensures compatibility with the typedef redefinitions we use, and makes it clear during the `configure` stage that old compiler versions are not supported. See <https://releases.llvm.org/> regarding the release history of clang. We also remove support for two number versions of clang, since as of LLVM 4.0.0 the project uses a three number versioning scheme; see <https://blog.llvm.org/2016/12/llvms-new-versioning-scheme.html>.
1 parent a6b7f13 commit b0ac9bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

win32/build/confutils.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -3073,8 +3073,9 @@ function toolset_get_compiler_version()
30733073
if (full.match(/clang version ([\d\.]+)/)) {
30743074
version = RegExp.$1;
30753075
version = version.replace(/\./g, '');
3076-
version = version/100 < 1 ? version*10 : version;
3077-
3076+
if (version < 400) {
3077+
ERROR("Building with clang " + version + " is no longer supported");
3078+
}
30783079
return version;
30793080
}
30803081
} else if (ICC_TOOLSET) {

0 commit comments

Comments
 (0)