Index: runtime/bin/BUILD.gn |
diff --git a/runtime/bin/BUILD.gn b/runtime/bin/BUILD.gn |
index 04d7097e1f3d69d0e4162ec3bc82177fad0d1e7d..20b2a8a84a0a9d4e058c9a82e5da82fa00fbb6d4 100644 |
--- a/runtime/bin/BUILD.gn |
+++ b/runtime/bin/BUILD.gn |
@@ -280,7 +280,13 @@ source_set("embedded_dart_io") { |
} |
set_sources_assignment_filter(custom_sources_filter) |
- defines = [ "DART_IO_SECURE_SOCKET_DISABLED" ] |
+ if (is_mac || is_ios) { |
+ libs = [ |
+ "Security.framework", |
+ ] |
+ } else { |
+ defines = [ "DART_IO_SECURE_SOCKET_DISABLED" ] |
+ } |
sources = io_impl_sources_gypi.sources + builtin_impl_sources_gypi.sources |
sources += [ |