From 14d484ddd49bbf4e55fb3985a76ca3151e806aaf Mon Sep 17 00:00:00 2001 From: Johnni Winther Date: Mon, 27 May 2024 11:24:23 +0200 Subject: [PATCH] Remove use of --nnbd-agnostic The Dart VM no longer supports unsound null safety, so we don't need to generate the platform in agnostic mode. --- lib/snapshot/BUILD.gn | 2 +- shell/platform/fuchsia/dart_runner/kernel/BUILD.gn | 2 +- shell/platform/fuchsia/flutter/kernel/BUILD.gn | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/snapshot/BUILD.gn b/lib/snapshot/BUILD.gn index 99a431769ea31..8f9dd526fb669 100644 --- a/lib/snapshot/BUILD.gn +++ b/lib/snapshot/BUILD.gn @@ -238,7 +238,7 @@ compile_platform("strong_platform") { flutter_runtime_mode == "release" || flutter_runtime_mode == "jit_release" args = [ "--enable-experiment=generic-metadata", - "--nnbd-agnostic", + "--nnbd-strong", "--target=flutter", "-Ddart.vm.product=$is_runtime_mode_release", "-Ddart.isVM=true", diff --git a/shell/platform/fuchsia/dart_runner/kernel/BUILD.gn b/shell/platform/fuchsia/dart_runner/kernel/BUILD.gn index f0319dee65f51..7e066a38b853e 100644 --- a/shell/platform/fuchsia/dart_runner/kernel/BUILD.gn +++ b/shell/platform/fuchsia/dart_runner/kernel/BUILD.gn @@ -20,7 +20,7 @@ compile_platform("kernel_platform_files") { ] args = [ - "--nnbd-agnostic", + "--nnbd-strong", "--target=dart_runner", "dart:core", ] diff --git a/shell/platform/fuchsia/flutter/kernel/BUILD.gn b/shell/platform/fuchsia/flutter/kernel/BUILD.gn index 0e4cdb25f8f85..76cba08883e9c 100644 --- a/shell/platform/fuchsia/flutter/kernel/BUILD.gn +++ b/shell/platform/fuchsia/flutter/kernel/BUILD.gn @@ -20,7 +20,7 @@ compile_platform("kernel_platform_files") { ] args = [ - "--nnbd-agnostic", + "--nnbd-strong", "--target=flutter_runner", "dart:core", ]