| Index: runtime/bin/main.cc
|
| diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
|
| index 57c51686767da10cbc9e1982eea74ffac58bf5ba..7e5138ed0a004f57527bc75753f4c61dbab570a0 100644
|
| --- a/runtime/bin/main.cc
|
| +++ b/runtime/bin/main.cc
|
| @@ -339,6 +339,8 @@ static int ParseArguments(int argc,
|
| }
|
| }
|
|
|
| + // The arguments to the VM are at positions 1 through i-1 in argv.
|
| + Platform::SetExecutableArguments(i, argv);
|
|
|
| // Get the script name.
|
| if (i < argc) {
|
| @@ -461,6 +463,7 @@ static Dart_Isolate CreateIsolateAndSetupHelper(const char* script_uri,
|
| return NULL;
|
| }
|
|
|
| + Platform::SetPackageRoot(package_root);
|
| Dart_Handle io_lib_url = DartUtils::NewString("dart:io");
|
| CHECK_RESULT(io_lib_url);
|
| Dart_Handle io_lib = Dart_LookupLibrary(io_lib_url);
|
|
|