Adapt to vm isolate and isolate snapshot pieces being emitted as asse…#6433
Adapt to vm isolate and isolate snapshot pieces being emitted as asse…#6433rmacnak-google merged 1 commit intoflutter:masterfrom rmacnak-google:dylib
Conversation
| printStatus('Building app.dylib...'); | ||
|
|
||
| // These names are known to from the engine. | ||
| const String kDartVmIsolateSnapshotBuffer = 'kDartVmIsolateSnapshotBuffer'; |
There was a problem hiding this comment.
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.