From db491eb671e66a42c21cb7c29ced85dc188f83e9 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Tue, 18 Apr 2023 19:55:03 +0000 Subject: [PATCH] Set minimum mac SDK version to 10.14 Bug: https://github.com/dart-lang/sdk/issues/47820 Change-Id: I42310999303d1849aaedd800e4222e6863870fc5 Tested: Build-only change - tested with flutter engine build Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/295389 Reviewed-by: William Hesse Reviewed-by: Zach Anderson Commit-Queue: Brian Quinlan --- build/config/mac/mac_sdk.gni | 2 +- runtime/bin/security_context_macos.cc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build/config/mac/mac_sdk.gni b/build/config/mac/mac_sdk.gni index ae8cd000fe5..a89a1766ddf 100644 --- a/build/config/mac/mac_sdk.gni +++ b/build/config/mac/mac_sdk.gni @@ -6,7 +6,7 @@ import("//build/toolchain/goma.gni") declare_args() { # Minimum supported version of the Mac SDK. - mac_sdk_min = "10.13" + mac_sdk_min = "10.14" # Path to a specific version of the Mac SDK, not including a backslash at # the end. If empty, the path to the lowest version greater than or equal to diff --git a/runtime/bin/security_context_macos.cc b/runtime/bin/security_context_macos.cc index 5b406a8ef04..8612cc39c00 100644 --- a/runtime/bin/security_context_macos.cc +++ b/runtime/bin/security_context_macos.cc @@ -313,7 +313,10 @@ static void TrustEvaluateHandler(Dart_Port dest_port_id, status = SecTrustGetTrustResult(trust.get(), &trust_result); } else { // SecTrustEvaluate is deprecated as of OSX 10.15 and iOS 13. +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated" status = SecTrustEvaluate(trust.get(), &trust_result); +#pragma clang diagnostic pop } postReply(reply_port_id,