From 64ad14dbe2225441fb7734bf6d89358d96692eea Mon Sep 17 00:00:00 2001 From: Alex Light Date: Tue, 19 Aug 2014 14:23:13 -0700 Subject: Support running without a boot image. Bug: 17000769 Change-Id: I6404d5050c8a2f4ee6e70d58532eb25ee9de248e --- runtime/parsed_options.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/parsed_options.cc') diff --git a/runtime/parsed_options.cc b/runtime/parsed_options.cc index 26360d77e2..9ed5e7b8f0 100644 --- a/runtime/parsed_options.cc +++ b/runtime/parsed_options.cc @@ -224,6 +224,7 @@ bool ParsedOptions::Parse(const RuntimeOptions& options, bool ignore_unrecognize is_zygote_ = false; must_relocate_ = kDefaultMustRelocate; dex2oat_enabled_ = true; + image_dex2oat_enabled_ = true; if (kPoisonHeapReferences) { // kPoisonHeapReferences currently works only with the interpreter only. // TODO: make it work with the compiler. @@ -434,6 +435,10 @@ bool ParsedOptions::Parse(const RuntimeOptions& options, bool ignore_unrecognize dex2oat_enabled_ = false; } else if (option == "-Xdex2oat") { dex2oat_enabled_ = true; + } else if (option == "-Xnoimage-dex2oat") { + image_dex2oat_enabled_ = false; + } else if (option == "-Ximage-dex2oat") { + image_dex2oat_enabled_ = true; } else if (option == "-Xint") { interpreter_only_ = true; } else if (StartsWith(option, "-Xgc:")) { @@ -790,6 +795,7 @@ void ParsedOptions::Usage(const char* fmt, ...) { UsageMessage(stream, " -Xpatchoat:filename\n"); UsageMessage(stream, " -X[no]relocate\n"); UsageMessage(stream, " -X[no]dex2oat (Whether to invoke dex2oat on the application)\n"); + UsageMessage(stream, " -X[no]image-dex2oat (Whether to create and use a boot image)\n"); UsageMessage(stream, "\n"); UsageMessage(stream, "The following previously supported Dalvik options are ignored:\n"); -- cgit v1.2.3