mirror of
https://github.com/dart-lang/sdk
synced 2024-10-02 23:49:17 +00:00
[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 <aam@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
parent
15b6a2acbb
commit
74baf5e75a
|
@ -101,17 +101,8 @@ config("common_linker_setup") {
|
||||||
# Subsystem -------------------------------------------------------------------
|
# Subsystem -------------------------------------------------------------------
|
||||||
|
|
||||||
# This is appended to the subsystem to specify a minimum version.
|
# This is appended to the subsystem to specify a minimum version.
|
||||||
if (current_cpu == "x86") {
|
if (current_cpu == "x86" || current_cpu == "x64" || current_cpu == "arm" ||
|
||||||
# 5.01 = Windows XP.
|
current_cpu == "arm64") {
|
||||||
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.
|
|
||||||
subsystem_version_suffix = ",10.0"
|
subsystem_version_suffix = ",10.0"
|
||||||
} else {
|
} else {
|
||||||
assert(false, "Unknown current_cpu: $current_cpu")
|
assert(false, "Unknown current_cpu: $current_cpu")
|
||||||
|
|
Loading…
Reference in a new issue