Open sigmundch opened 5 years ago
We should just remove this in favor of calling dartdevc directly from GN.
fyi @jonahwilliams - looks like flutter is using a copy of this.
agree - and use the GN compile_platform macro to generate the sdk outline that we want to ship externally.
FWIW, the fix to stop hiding the error in kernel_sdk might be pretty small and might be worth doing anyways before we migrate things.
Just point me to the replacement and I can make sure that rolls into the engine correctly.
Two CLs are out for review.
I'm guessing the former will roll automatically, but if you have a copy of kernel_sdk.dart, the latter CL will need to be copied on your end.
@vsmenon - in case it is helpful, I found this very old CL around: https://dart-review.googlesource.com/c/sdk/+/56297/
That CL did 3 changes, 2 of which are no longer relevant:
My guess is that you'll drop the changes to the kernel_sdk, but use the GN changes to create the sdk outline with the same tool chain as all other tools, and separately invoke dartdevc to produce dart_sdk.js.
The script kernel_sdk.dart used to build the DDC platform dill file is not failing when the CFE reports errors.
We should: