diff --git a/script/tool/lib/src/native_test_command.dart b/script/tool/lib/src/native_test_command.dart index a944b95b87b..444624c090f 100644 --- a/script/tool/lib/src/native_test_command.dart +++ b/script/tool/lib/src/native_test_command.dart @@ -564,8 +564,12 @@ this command. extraFlags: [ if (testTarget != null) '-only-testing:$testTarget', ...extraFlags, - if (!_xcodeWarningsExceptions.contains(plugin.directory.basename)) + if (!_xcodeWarningsExceptions.contains( + plugin.directory.basename, + )) ...[ 'GCC_TREAT_WARNINGS_AS_ERRORS=YES', + r'OTHER_SWIFT_FLAGS=$(inherited) -strict-concurrency=targeted', + ], ], ); diff --git a/script/tool/test/native_test_command_test.dart b/script/tool/test/native_test_command_test.dart index 6c51ed7f2fd..2bfff05c4b0 100644 --- a/script/tool/test/native_test_command_test.dart +++ b/script/tool/test/native_test_command_test.dart @@ -177,7 +177,10 @@ void main() { 'Debug', if (destination != null) ...['-destination', destination], ...extraFlags, - if (treatWarningsAsErrors) 'GCC_TREAT_WARNINGS_AS_ERRORS=YES', + if (treatWarningsAsErrors) ...[ + 'GCC_TREAT_WARNINGS_AS_ERRORS=YES', + r'OTHER_SWIFT_FLAGS=$(inherited) -strict-concurrency=targeted', + ], ], package.path); }