summaryrefslogtreecommitdiffstats
path: root/runtime/parsed_options.cc
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2014-08-25 17:51:38 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-08-25 17:51:38 +0000
commite25826e28ea65d9c1aa23f84788a091c677b20c7 (patch)
tree0d89c7f23c5095907756a53ef8ebdaf92db0a48d /runtime/parsed_options.cc
parent21259fedf4fd0f786c71f69493ebfbb9affe3a8d (diff)
parent64ad14dbe2225441fb7734bf6d89358d96692eea (diff)
downloadart-e25826e28ea65d9c1aa23f84788a091c677b20c7.tar.gz
art-e25826e28ea65d9c1aa23f84788a091c677b20c7.tar.bz2
art-e25826e28ea65d9c1aa23f84788a091c677b20c7.zip
Merge "Support running without a boot image."
Diffstat (limited to 'runtime/parsed_options.cc')
-rw-r--r--runtime/parsed_options.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/parsed_options.cc b/runtime/parsed_options.cc
index 5e61696d2a..7ac5bceda2 100644
--- a/runtime/parsed_options.cc
+++ b/runtime/parsed_options.cc
@@ -225,6 +225,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.
@@ -439,6 +440,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:")) {
@@ -796,6 +801,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");