| Index: runtime/bin/main.cc
|
| ===================================================================
|
| --- runtime/bin/main.cc (revision 27481)
|
| +++ runtime/bin/main.cc (working copy)
|
| @@ -719,6 +719,13 @@
|
| }
|
| }
|
|
|
| + if (!DartUtils::SetOriginalWorkingDirectory()) {
|
| + OSError err;
|
| + fprintf(stderr, "Error determinig current directory: %s\n", err.message());
|
| + fflush(stderr);
|
| + return kErrorExitCode;
|
| + }
|
| +
|
| Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
|
|
|
| // Initialize the Dart VM.
|
| @@ -732,8 +739,6 @@
|
| return kErrorExitCode;
|
| }
|
|
|
| - DartUtils::SetOriginalWorkingDirectory();
|
| -
|
| // Start the debugger wire protocol handler if necessary.
|
| if (start_debugger) {
|
| ASSERT(debug_port >= 0);
|
|
|