Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index ace5b54e932d9b18f291c592e938f347f7ced25a..a53ede7909ea2035b94d7b2defc00a3f3fb9161e 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -6300,4 +6300,13 @@ DART_EXPORT bool Dart_IsRunningPrecompiledCode() { |
return Snapshot::IncludesCode(Dart::snapshot_kind()); |
} |
+ |
+DART_EXPORT bool Dart_IsPrecompiledRuntime() { |
+#if defined(DART_PRECOMPILED_RUNTIME) |
+ return true; |
+#else |
+ return false; |
+#endif |
+} |
+ |
} // namespace dart |