aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers')
-rw-r--r--lib/compilers/dex2oat.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/compilers/dex2oat.ts b/lib/compilers/dex2oat.ts
index 240964165..874c04687 100644
--- a/lib/compilers/dex2oat.ts
+++ b/lib/compilers/dex2oat.ts
@@ -264,6 +264,17 @@ export class Dex2OatCompiler extends BaseCompiler {
return [];
}
+ // dex2oat doesn't have --version, but artArtifactDir contains a file with
+ // the build number.
+ override async getVersion() {
+ const versionFile = this.artArtifactDir + '/snapshot-creation-build-number.txt';
+ const version = fs.readFileSync(versionFile, {encoding: 'utf-8'});
+ return {
+ stdout: [version],
+ stderr: [],
+ };
+ }
+
override async processAsm(result) {
let asm: string = '';