Index: runtime/vm/bootstrap.cc |
diff --git a/runtime/vm/bootstrap.cc b/runtime/vm/bootstrap.cc |
index 1868f07a3034bf1fd5d2ff207ba7b0a86e86e56a..8cb5d77959a201811b6f6610f17ec7738f822993 100644 |
--- a/runtime/vm/bootstrap.cc |
+++ b/runtime/vm/bootstrap.cc |
@@ -295,6 +295,11 @@ RawError* Bootstrap::LoadandCompileScripts() { |
for (intptr_t i = 0; |
bootstrap_libraries[i].index_ != ObjectStore::kNone; |
++i) { |
+#ifdef PRODUCT |
+ if (bootstrap_libraries[i].index_ == ObjectStore::kMirrors) { |
+ continue; |
+ } |
+#endif // !PRODUCT |
uri = Symbols::New(bootstrap_libraries[i].uri_); |
lib = Library::LookupLibrary(uri); |
if (lib.IsNull()) { |
@@ -310,6 +315,11 @@ RawError* Bootstrap::LoadandCompileScripts() { |
for (intptr_t i = 0; |
bootstrap_libraries[i].index_ != ObjectStore::kNone; |
++i) { |
+#ifdef PRODUCT |
+ if (bootstrap_libraries[i].index_ == ObjectStore::kMirrors) { |
+ continue; |
+ } |
+#endif // PRODUCT |
uri = Symbols::New(bootstrap_libraries[i].uri_); |
lib = Library::LookupLibrary(uri); |
ASSERT(!lib.IsNull()); |