diff options
| author | 2015-12-24 05:57:14 +0000 | |
|---|---|---|
| committer | 2015-12-24 05:57:14 +0000 | |
| commit | b7f644b3ef0b23350d83f10612b80e27112f2478 (patch) | |
| tree | b5ab789248e279318f6c1e3f6c511703d7294476 /compiler/optimizing/optimizing_compiler.cc | |
| parent | a36eff85949d4b439930d4838d885dcba27515ae (diff) | |
| parent | dcdc85bbd569f0ee66c331b4219c19304a616214 (diff) | |
Merge "Dex2oat support for multiple oat file and image file outputs."
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
| -rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 831b626c4f..dd1d193ca3 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -880,7 +880,11 @@ Compiler* CreateOptimizingCompiler(CompilerDriver* driver) { bool IsCompilingWithCoreImage() { const std::string& image = Runtime::Current()->GetImageLocation(); - return EndsWith(image, "core.art") || EndsWith(image, "core-optimizing.art"); + // TODO: This is under-approximating... + if (EndsWith(image, "core.art") || EndsWith(image, "core-optimizing.art")) { + return true; + } + return false; } bool OptimizingCompiler::JitCompile(Thread* self, |