-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[VM] Hide unsound null safety flag if build requires it #50348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This CL is blocked on the following
|
Hi @a-siva what remains that blocks this change? |
|
FYI - re dart2js - @natebiggs has a CL in progress to update the dart2js invocation to use sound null safety. He is out this week, but we can get a more accurate estimate when he returns next week. |
This CL https://dart-review.googlesource.com/c/sdk/+/283981 attempts to add a build time option for removing the unsound null safety flag, currently this fails to build the SDK, once @natebiggs lands the CL to update dart2js I can try building the SDK again. |
I expect to land my CL (https://dart-review.git.corp.google.com/c/sdk/+/280221) early next week. I'm waiting for the equivalent internal change to roll around a bit to make sure nothing comes up. |
I've landed the above change, Dart2JS should now run in sound null safe mode. |
Confirmed that the Dart SDK builds successfully now. |
Here is what I learnt about the use of Flutter's Dart SDK internally from @chingjun
Basically all Flutter Dart code internally will be compiled with the frontend_server that is in the downloaded Dart SDK This pretty much means we cannot remove the |
We have decided to not implement this build flag for 3.0 and hence removing the milestone, the option of locking down the no-sound-null-safety option in the compiler has already landed. |
Starting in Dart3.beta, the SDK will have a new build flag to determine whether an SDK supports unsound null safety on any of its commands. When the flag indicates that unsound mode is not supported, then the VM needs to provide an error if a user passes in the --no-sound-null-safety flag.
The text was updated successfully, but these errors were encountered: