diff options
author | Kenny Root <kroot@google.com> | 2014-05-13 14:47:05 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2014-05-13 14:47:11 -0700 |
commit | d5185344e19d9feb7ac268369e0af6a467d1cb48 (patch) | |
tree | bf5e7174ff631a86b5776ff6ddfa0dfa9de810fb /runtime/parsed_options.cc | |
parent | a47dcbf4bc226b5bbf30618fc052e7c79672af7a (diff) | |
download | art-d5185344e19d9feb7ac268369e0af6a467d1cb48.zip art-d5185344e19d9feb7ac268369e0af6a467d1cb48.tar.gz art-d5185344e19d9feb7ac268369e0af6a467d1cb48.tar.bz2 |
Changes for vogar compatibility
Make sure dex2oat can make an image with an empty list of image_classes.
Add in some checks to make sure that no bad arguments sneak into
CompilerDriver.
If we're not on the ART_TARGET, we should check for the "hostdex"
versions of the libraries to substitute in our libart version.
Change-Id: I5e8485c6089d25664492f0217b43ef64ca84c061
Diffstat (limited to 'runtime/parsed_options.cc')
-rw-r--r-- | runtime/parsed_options.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/parsed_options.cc b/runtime/parsed_options.cc index 8c18dff..623b0c6 100644 --- a/runtime/parsed_options.cc +++ b/runtime/parsed_options.cc @@ -674,10 +674,17 @@ bool ParsedOptions::Parse(const Runtime::Options& options, bool ignore_unrecogni // the art specific version. This can happen with on device // boot.art/boot.oat generation by GenerateImage which relies on the // value of BOOTCLASSPATH. +#if defined(ART_TARGET) std::string core_jar("/core.jar"); + std::string core_libart_jar("/core-libart.jar"); +#else + // The host uses hostdex files. + std::string core_jar("/core-hostdex.jar"); + std::string core_libart_jar("/core-libart-hostdex.jar"); +#endif size_t core_jar_pos = boot_class_path_string_.find(core_jar); if (core_jar_pos != std::string::npos) { - boot_class_path_string_.replace(core_jar_pos, core_jar.size(), "/core-libart.jar"); + boot_class_path_string_.replace(core_jar_pos, core_jar.size(), core_libart_jar); } if (compiler_callbacks_ == nullptr && image_.empty()) { |