diff options
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r-- | runtime/runtime.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index dd7c21938f..ee7e264558 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -765,8 +765,10 @@ std::string Runtime::GetCompilerExecutable() const { if (!compiler_executable_.empty()) { return compiler_executable_; } - std::string compiler_executable(GetAndroidRoot()); - compiler_executable += (kIsDebugBuild ? "/bin/dex2oatd" : "/bin/dex2oat"); + std::string compiler_executable = GetAndroidRuntimeBinDir() + "/dex2oat"; + if (kIsDebugBuild) { + compiler_executable += 'd'; + } return compiler_executable; } |