Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
dart_bootstrap should not need kernel binaries when compiling AOT snapshots #31560
Currently we need to pass
We should not need to do that. This can also lead to incorrect code generated if we end up loading parts of the Isolate from one binary (e.g. vm_platform) and parts of the isolate from another binary (input kernel).
Commit 0352170 removes the requirement to specify --kernel-binaries option. If this option is not specified, then the kernel file from the command line is treated as fully linked and platform classes are used from that binary. '-c dartkp --strong' configuration of the test tool and pkg/vm/tool/precompiler2 run in this mode.
If --kernel-binaries is specified, platform libraries are still loaded from the vm_platform.