Bug 1924743 - Only show lldb-server warning if there are multiple versions installed r=firefox-build-system-reviewers,nalexander

Differential Revision: https://phabricator.services.mozilla.com/D250563
This commit is contained in:
Alex Hochheiden
2025-05-22 22:05:13 +00:00
committed by ahochheiden@mozilla.com
parent 1f70d01002
commit b7606eb0d3

View File

@@ -213,14 +213,16 @@ def android_lldb_server(target, host, ndk, lldb):
) )
sorted_versions = sorted(clang_subdirs, key=Version) sorted_versions = sorted(clang_subdirs, key=Version)
highest_version = sorted_versions[-1] highest_version = sorted_versions[-1]
log.warning("Using highest version available: %s" % quote(highest_version))
log.warning( if len(sorted_versions) > 1:
" Available versions: " log.warning("Using highest version available: %s" % quote(highest_version))
+ ", ".join(str(version) for version in sorted_versions) log.warning(
) " Available versions: "
log.warning( + ", ".join(str(version) for version in sorted_versions)
"(To use an older version, please specify --with-android-lldb-server=/path/to/desired/android/lldb-server)" )
) log.warning(
"(To use an older version, please specify --with-android-lldb-server=/path/to/desired/android/lldb-server)"
)
if target.cpu == "x86": if target.cpu == "x86":
target_cpu = "i386" target_cpu = "i386"