| Index: runtime/bin/gen_snapshot.cc
|
| ===================================================================
|
| --- runtime/bin/gen_snapshot.cc (revision 1859)
|
| +++ runtime/bin/gen_snapshot.cc (working copy)
|
| @@ -254,11 +254,8 @@
|
| return 255;
|
| }
|
|
|
| - // Initialize the Dart VM (TODO(asiva) - remove const_cast once
|
| - // dart API is fixed to take a const char** in Dart_Initialize).
|
| - Dart_Initialize(vm_options.count(),
|
| - vm_options.arguments(),
|
| - SnapshotCreateCallback);
|
| + Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
|
| + Dart_Initialize(SnapshotCreateCallback);
|
|
|
| // Create an isolate. As a side effect, SnapshotCreateCallback
|
| // gets called, which loads the script (if one is specified), its libraries
|
|
|