From 74baf5e75a754edff091785586214549124c0c18 Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Fri, 23 Feb 2024 00:22:25 +0000 Subject: [PATCH] [build] Set minimum version for Windows to 10. Bug: https://github.com/dart-lang/sdk/issues/54509 Change-Id: Ia52415c7eeea031dd0e8a27b6840b1e59b2baf6a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353786 Reviewed-by: Alexander Aprelev Commit-Queue: Ryan Macnak --- build/config/win/BUILD.gn | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/build/config/win/BUILD.gn b/build/config/win/BUILD.gn index cf805af4003..232ab059c9e 100644 --- a/build/config/win/BUILD.gn +++ b/build/config/win/BUILD.gn @@ -101,17 +101,8 @@ config("common_linker_setup") { # Subsystem ------------------------------------------------------------------- # This is appended to the subsystem to specify a minimum version. -if (current_cpu == "x86") { - # 5.01 = Windows XP. - subsystem_version_suffix = ",5.01" -} else if (current_cpu == "x64") { - # The number after the comma is the minimum required OS version. - # 5.02 = Windows Server 2003. - subsystem_version_suffix = ",5.02" -} else if (current_cpu == "arm") { - subsystem_version_suffix = ",6.02" -} else if (current_cpu == "arm64") { - # Windows ARM64 requires Windows 10. +if (current_cpu == "x86" || current_cpu == "x64" || current_cpu == "arm" || + current_cpu == "arm64") { subsystem_version_suffix = ",10.0" } else { assert(false, "Unknown current_cpu: $current_cpu")