Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: runtime/bin/vmservice_impl.cc

Issue 2168193002: Fuchsia: Build standalone VM. Make it run "Hello, World!". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/vmservice/vmservice_io.dart ('k') | runtime/platform/utils_fuchsia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice_impl.cc
diff --git a/runtime/bin/vmservice_impl.cc b/runtime/bin/vmservice_impl.cc
index cfb05caf00cfcf5534e207ba16e0fa0eddf44584..d85186326f9436e679bb8999f8da1882a55062c1 100644
--- a/runtime/bin/vmservice_impl.cc
+++ b/runtime/bin/vmservice_impl.cc
@@ -256,6 +256,16 @@ bool VmService::Setup(const char* server_ip,
Dart_SetField(library, DartUtils::NewString("_isWindows"), is_windows);
SHUTDOWN_ON_ERROR(result);
+ // Are we running on Fuchsia?
+#if defined(TARGET_OS_FUCHSIA)
+ Dart_Handle is_fuchsia = Dart_True();
+#else
+ Dart_Handle is_fuchsia = Dart_False();
+#endif
+ result =
+ Dart_SetField(library, DartUtils::NewString("_isFuchsia"), is_fuchsia);
+ SHUTDOWN_ON_ERROR(result);
+
// Get _getWatchSignalInternal from dart:io.
Dart_Handle dart_io_str = Dart_NewStringFromCString(DartUtils::kIOLibURL);
SHUTDOWN_ON_ERROR(dart_io_str);
« no previous file with comments | « runtime/bin/vmservice/vmservice_io.dart ('k') | runtime/platform/utils_fuchsia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698