build swift-inspect for Android as part of toolchain build #79050
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Include
swift-inspect
for Androidarm64-v8a
andx86_64
as part of the Swift toolchain build on Windows.Overview
Build-Inspect
to support building for targets other than the hostBuild-Inspect
to use the built sdk rather than the installed oneCMAKE_Swift_FLAGS
swift-inspect
binary for the host by special-casing it inBuild-Inspect
swift-inspect
for the host using the host-builtswift-argument-parser
Build-Inspect
lets CMake fetchswift-argument-parser
instead of using the locally built version due to Android requiring v1.5.0 (see [swift-inspect] use CMake FetchContent to fetch ArgumentParser when not provided #78827)swift-inspect
for Androidarm64-v8a
andx86_64
when those targets are included in the buildBackground
swift-inspect
for Android 64-bit platforms and intend to include it as part of the Android SDKswift-inspect
binary in the Android .msi files will come laterswift-argument-parser
moves to >= v1.5.0, theBuild-ArgumentParser
function should be reworked to build for non-host targets and used when buildingswift-inspect
for non-host targets instead of letting CMake fetch it.Validation
build.ps1
on Windows 11 x64.swift-inspect.exe
runs on the build machineswift-inspect
runs on an Android emulatorswift-inspect
runs on an Android device