Unverified Commit e15cfc2c authored by Siva's avatar Siva Committed by GitHub

Remove code that morphs --sound-null-safety to --null-safety options (#61491)

parent 4fba7747
...@@ -310,14 +310,7 @@ class KernelCompiler { ...@@ -310,14 +310,7 @@ class KernelCompiler {
'--platform', '--platform',
platformDill, platformDill,
], ],
if (extraFrontEndOptions != null) ...?extraFrontEndOptions,
for (String arg in extraFrontEndOptions)
if (arg == '--sound-null-safety')
'--null-safety'
else if (arg == '--no-sound-null-safety')
'--no-null-safety'
else
arg,
mainUri?.toString() ?? mainPath, mainUri?.toString() ?? mainPath,
]; ];
...@@ -728,14 +721,7 @@ class DefaultResidentCompiler implements ResidentCompiler { ...@@ -728,14 +721,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
platformDill, platformDill,
], ],
if (unsafePackageSerialization == true) '--unsafe-package-serialization', if (unsafePackageSerialization == true) '--unsafe-package-serialization',
if (extraFrontEndOptions != null) ...?extraFrontEndOptions,
for (String arg in extraFrontEndOptions)
if (arg == '--sound-null-safety')
'--null-safety'
else if (arg == '--no-sound-null-safety')
'--no-null-safety'
else
arg,
]; ];
_logger.printTrace(command.join(' ')); _logger.printTrace(command.join(' '));
_server = await _processManager.start(command); _server = await _processManager.start(command);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment