-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Adapt to vm isolate and isolate snapshot pieces being emitted as asse… #6433
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
Conversation
chinmaygarde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
| printStatus('Building app.dylib...'); | ||
|
|
||
| // These names are known to from the engine. | ||
| const String kDartVmIsolateSnapshotBuffer = 'kDartVmIsolateSnapshotBuffer'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like with this change, we're just dropping the vm isolate snapshot (that we generate on line 216) on the floor for iOS. For Android, we include it in the APK (build_apk.dart line 578), but for iOS it goes nowhere. Isn't this a problem?
|
So with this change, we pass the following flags to Yet those snapshot files aren't generated. Is this intentional? It seems weird to pass flags that get dropped on the floor. Does this behavior get triggered because we also pass It's also weird that in debug mode, our app.dylib is being created without actually linking anything anymore... @rmacnak-google let's chat tomorrow - I guess I need more context on what changed and how stuff works now. |
|
Funny enough, if you try calling gen_snapshot without the ... even though it's ignored when you do pass it. |
|
They are generated; they're included in the .S now instead of being emitted as separate files. |
|
Ok, verified that this change causes iOS debug builds to crash, because they're lacking the snapshots required for DBC. |
…mbly.