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 {
'--platform',
platformDill,
],
if (extraFrontEndOptions != null)
for (String arg in extraFrontEndOptions)
if (arg == '--sound-null-safety')
'--null-safety'
else if (arg == '--no-sound-null-safety')
'--no-null-safety'
else
arg,
...?extraFrontEndOptions,
mainUri?.toString() ?? mainPath,
];
......@@ -728,14 +721,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
platformDill,
],
if (unsafePackageSerialization == true) '--unsafe-package-serialization',
if (extraFrontEndOptions != null)
for (String arg in extraFrontEndOptions)
if (arg == '--sound-null-safety')
'--null-safety'
else if (arg == '--no-sound-null-safety')
'--no-null-safety'
else
arg,
...?extraFrontEndOptions,
];
_logger.printTrace(command.join(' '));
_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