Skip to content

Commit

Permalink
[build] Set minimum version for Windows to 10.
Browse files Browse the repository at this point in the history
Bug: #54509
Change-Id: Ia52415c7eeea031dd0e8a27b6840b1e59b2baf6a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353786
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
  • Loading branch information
rmacnak-google authored and Commit Queue committed Feb 23, 2024
1 parent 15b6a2a commit 74baf5e
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions build/config/win/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 74baf5e

Please sign in to comment.