From b0ac9bf669d20ae211cc3e004060c1d7fa1e4f37 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Thu, 15 Aug 2024 14:30:23 +0200 Subject: [PATCH] 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 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 . --- win32/build/confutils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/win32/build/confutils.js b/win32/build/confutils.js index b72950954c0..78d4291f2fe 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -3073,8 +3073,9 @@ function toolset_get_compiler_version() if (full.match(/clang version ([\d\.]+)/)) { version = RegExp.$1; version = version.replace(/\./g, ''); - version = version/100 < 1 ? version*10 : version; - + if (version < 400) { + ERROR("Building with clang " + version + " is no longer supported"); + } return version; } } else if (ICC_TOOLSET) {