summaryrefslogtreecommitdiff
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 2074f1e5f5..4442fc6a54 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -1593,6 +1593,11 @@ bool Runtime::Init(RuntimeArgumentMap&& runtime_options_in) {
VLOG(startup) << "Runtime::Init exiting";
+ // Set OnlyUseSystemOatFiles only after boot classpath has been set up.
+ if (runtime_options.Exists(Opt::OnlyUseSystemOatFiles)) {
+ oat_file_manager_->SetOnlyUseSystemOatFiles();
+ }
+
return true;
}