Chromium Code Reviews| Index: runtime/bin/vmservice_impl.cc |
| diff --git a/runtime/bin/vmservice_impl.cc b/runtime/bin/vmservice_impl.cc |
| index 80d7dc0e8bab6e1bf76482940e7883a784866316..32edb0cb871c0b691c56be22644235fdbc2b5911 100644 |
| --- a/runtime/bin/vmservice_impl.cc |
| +++ b/runtime/bin/vmservice_impl.cc |
| @@ -142,6 +142,16 @@ bool VmService::_Start(const char *server_ip, intptr_t server_port) { |
| Dart_SetField(library, |
| DartUtils::NewString("_autoStart"), |
| Dart_NewBoolean(auto_start)); |
| + // We cannot register for signals on windows. |
|
Anders Johnsen
2014/06/18 07:24:11
Remove this.
|
| +#if defined(TARGET_OS_WINDOWS) |
| + const bool is_windows = true; |
| +#else |
| + const bool is_windows = false; |
| +#endif |
| + Dart_SetField(library, |
| + DartUtils::NewString("_isWindows"), |
| + Dart_NewBoolean(is_windows)); |
| + |
| // Invoke main. |
| result = Dart_Invoke(library, DartUtils::NewString("main"), 0, NULL); |
| SHUTDOWN_ON_ERROR(result); |