Skip to content

Commit f1387e6

Browse files
jason-simmonsCommit Queue
authored andcommitted
[build] Add a build flag for disabling secure sockets in the Dart IO library
See flutter/flutter#170459 TEST=local builds of Flutter Bug: flutter/flutter#170459 Change-Id: Id15b9e19000bde41ae67274e5d2e43c0a0ae7a85 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/434984 Reviewed-by: Siva Annamalai <[email protected]> Commit-Queue: Jason Simmons <[email protected]>
1 parent a2218ab commit f1387e6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

runtime/bin/BUILD.gn

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,10 @@ template("dart_io") {
535535
}
536536
}
537537

538+
if (dart_disable_secure_socket) {
539+
defines += [ "DART_IO_SECURE_SOCKET_DISABLED" ]
540+
}
541+
538542
include_dirs = [
539543
"..",
540544
"//third_party",
@@ -845,6 +849,9 @@ template("dart_executable") {
845849
if (exclude_kernel_service) {
846850
defines += [ "EXCLUDE_CFE_AND_KERNEL_PLATFORM" ]
847851
}
852+
if (dart_disable_secure_socket) {
853+
defines += [ "DART_IO_SECURE_SOCKET_DISABLED" ]
854+
}
848855
include_dirs = [
849856
"..",
850857
"//third_party",

runtime/runtime_args.gni

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ declare_args() {
4848
# verified at the operating system level.
4949
dart_use_fallback_root_certificates = false
5050

51+
# Whether to disable support for secure sockets in the Dart IO library.
52+
dart_disable_secure_socket = false
53+
5154
# Whether to link Crashpad library for crash handling. Only supported on
5255
# Windows for now.
5356
dart_use_crashpad = false

0 commit comments

Comments
 (0)