Index: runtime/vm/dart.cc |
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc |
index f5f34e478a6f7b6a0e60910026bf0434fa7f82e7..00acbda3b305fc6d3546d081b22c273d9224444a 100644 |
--- a/runtime/vm/dart.cc |
+++ b/runtime/vm/dart.cc |
@@ -203,6 +203,9 @@ char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot, |
if (vm_snapshot_kind_ == Snapshot::kFullAOT) { |
#if defined(DART_PRECOMPILED_RUNTIME) |
vm_isolate_->set_compilation_allowed(false); |
+ if (!FLAG_precompiled_runtime) { |
+ return strdup("Flag --precompilation was not specified"); |
+ } |
#else |
return strdup("JIT runtime cannot run a precompiled snapshot"); |
#endif |