summaryrefslogtreecommitdiff
path: root/android/configured_jars.go
diff options
context:
space:
mode:
author Chris Jones <christopher.jones@arm.com> 2023-02-28 11:38:55 +0000
committer Chris Jones <christopher.jones@arm.com> 2025-03-10 11:58:59 +0000
commitacf4472951f6e95807f98bffa21b36b292cdd9d1 (patch)
tree47f709ef4265c639735ce5230b3e86ac1090c040 /android/configured_jars.go
parent08d40a1b365ca91981ce72ed44b33297c94d0e4a (diff)
[Sim] Add device paths for ART simulator
The ART simulator requires both target and host to be built one after the other but the device paths should stay the same regardless of which build (target or host) is being performed. Therefore use the host device paths for whenever the ART simulator is being built as the ART simulator is run on the host. Test: Follow instructions in README.simulator.md Test: ./test.py --host --target --simulator Change-Id: I7210c254589493ffe52cc459fc268105accf6074
Diffstat (limited to 'android/configured_jars.go')
-rw-r--r--android/configured_jars.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/configured_jars.go b/android/configured_jars.go
index c7b808f3d..657826e98 100644
--- a/android/configured_jars.go
+++ b/android/configured_jars.go
@@ -264,7 +264,7 @@ func (l *ConfiguredJarList) DevicePaths(cfg Config, ostype OsType) []string {
subdir = filepath.Join("apex", apex, "javalib")
}
- if ostype.Class == Host {
+ if ostype.Class == Host || cfg.IsEnvTrue("ART_USE_SIMULATOR") {
paths[i] = filepath.Join(cfg.Getenv("OUT_DIR"), "host", cfg.PrebuiltOS(), subdir, name)
} else {
paths[i] = filepath.Join("/", subdir, name)