Skip to content

Commit d13d640

Browse files
authored
Increase minimum macOS SDK from 10.13 to 10.14 (flutter#648)
Increases the minimum macOS SDK and the macOS deployment target from 10.13 to 10.14. Also enables aligned allocations on macOS. We previously set `-fno-aligned-allocation` on macOS since it was unsupported for arm64 prior to macOS 10.14. Issue: flutter#114445
1 parent 4099e11 commit d13d640

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

build/config/compiler/BUILD.gn

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,6 @@ config("compiler") {
176176
"-arch",
177177
"arm64",
178178
]
179-
if (is_mac) {
180-
# Aligned allocations are only supported on arm64 after macOS 10.14,
181-
# however our deployment target is currently 10.11.
182-
common_mac_flags += [ "-fno-aligned-allocation" ]
183-
}
184179
}
185180

186181
cflags += common_mac_flags

build/config/mac/mac_sdk.gni

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import("//build/toolchain/goma.gni")
66

77
declare_args() {
88
# Minimum supported version of the Mac SDK.
9-
mac_sdk_min = "10.13"
9+
mac_sdk_min = "10.14"
1010

1111
# The MACOSX_DEPLOYMENT_TARGET variable used when compiling.
1212
# Must be of the form x.x.x for Info.plist files.
13-
mac_deployment_target = "10.13.0"
13+
mac_deployment_target = "10.14.0"
1414

1515
# Path to a specific version of the Mac SDK, not including a backslash at
1616
# the end. If empty, the path to the lowest version greater than or equal to

0 commit comments

Comments
 (0)