From 8b73a5b69a747eadbfda2e764b6422db05cfd2ed Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 12 Sep 2026 14:02:46 +0800 Subject: [PATCH] Lower Windows SDK requirement until github installs newer windows sdk --- src/base/win/windows_version.cc | 4 ++-- src/build/config/win/BUILD.gn | 2 +- src/build/toolchain/win/setup_toolchain.py | 2 +- src/build/vs_toolchain.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/base/win/windows_version.cc b/src/base/win/windows_version.cc index 1a24872d20..5f4858260a 100644 --- a/src/base/win/windows_version.cc +++ b/src/base/win/windows_version.cc @@ -27,8 +27,8 @@ #error VS 2017 Update 3.2 or higher is required #endif -#if !defined(NTDDI_WIN11_BR) -#error Windows 10.0.28000.0 SDK or higher required. +#if !defined(NTDDI_WIN11_GE) +#error Windows 10.0.26100.0 SDK or higher required. #endif namespace base { diff --git a/src/build/config/win/BUILD.gn b/src/build/config/win/BUILD.gn index ea7a4a92ea..d3b595eff7 100644 --- a/src/build/config/win/BUILD.gn +++ b/src/build/config/win/BUILD.gn @@ -305,7 +305,7 @@ config("runtime_library") { # manually override this config for their compiles. config("winver") { defines = [ - "NTDDI_VERSION=NTDDI_WIN11_BR", + "NTDDI_VERSION=NTDDI_WIN11_GE", # We can't say `=_WIN32_WINNT_WIN10` here because some files do # `#if WINVER < 0x0600` without including windows.h before, diff --git a/src/build/toolchain/win/setup_toolchain.py b/src/build/toolchain/win/setup_toolchain.py index e7651ec9f8..bce79d5306 100644 --- a/src/build/toolchain/win/setup_toolchain.py +++ b/src/build/toolchain/win/setup_toolchain.py @@ -22,7 +22,7 @@ import action_helpers import gn_helpers SCRIPT_DIR = os.path.dirname(__file__) -SDK_VERSION = '10.0.28000.0' +SDK_VERSION = '10.0.26100.0' MSVC_DIR = re.compile('^.*/VC/Tools/MSVC/[^/]+/include$') WINDOWS_KITS_DIR = re.compile(r'^(.*/Windows Kits/\d+/Include/[^/]+)/.*') diff --git a/src/build/vs_toolchain.py b/src/build/vs_toolchain.py index 8bcba3e3f8..7732051572 100755 --- a/src/build/vs_toolchain.py +++ b/src/build/vs_toolchain.py @@ -59,8 +59,8 @@ from gn_helpers import ToGNString # * docs/windows_build_instructions.md # Make sure any version numbers in the documentation match the code. # -TOOLCHAIN_HASH = '3bfcb536c8' -SDK_VERSION = '10.0.28000.0' +TOOLCHAIN_HASH = 'e66617bc68' +SDK_VERSION = '10.0.26100.0' # Visual Studio versions are listed in descending order of priority. # The first version is assumed by this script to be the one that is packaged,