Skip to content

Declare Android host triples in skip-linux artifactbundle supportedTriples - #266

Open
hpr wants to merge 2 commits into
skiptools:mainfrom
hpr:android-supported-triples
Open

Declare Android host triples in skip-linux artifactbundle supportedTriples#266
hpr wants to merge 2 commits into
skiptools:mainfrom
hpr:android-supported-triples

Conversation

@hpr

@hpr hpr commented Aug 18, 2026

Copy link
Copy Markdown

Problem

The release-built skip-linux.zip artifactbundle declares only *-unknown-linux-gnu in each variant's supportedTriples (generated here in build_linux_plugin.sh). The static-MUSL skip binary itself runs fine on Android (bionic) hosts — verified on-device (aarch64 Termux, Swift 6.3.2 Android toolchain) — but SwiftPM rejects the binary target there with "Tool 'skip' is not supported on the target platform" because the host triple (aarch64-unknown-linux-android24) isn't listed.

Together with skiptools/skip#725 (which makes the manifest select the Linux binary target for os(Android) hosts), this lets Android hosts use the prebuilt transpiler instead of building skipstone + SwiftSyntax from source — a host build that spikes 5–8 GB RSS per swift-frontend process and OOM-kills typical Android devices.

Change

Add <arch>-unknown-linux-android and <arch>-unknown-linux-android24 to supportedTriples for each built arch. No binary changes; the triples are only host-platform declarations for SwiftPM's artifact selection. (API 24 matches the swift.org Android toolchain's host triple; the generic -android triple covers other Android environments.)

Testing

Validated the generated info.json syntax by simulating the VARIANTS loop; verified end-to-end earlier by repacking the published 1.9.5 skip-linux.zip with these triples added — SwiftPM on-device then accepts the binary target and skipstone/SwiftSyntax leave the dependency graph entirely.

…iples

The static-MUSL skip binary runs fine on Android (bionic) hosts such as
Termux, but the generated info.json only listed *-unknown-linux-gnu, so
SwiftPM rejects the binary target there ('Tool skip is not supported on
the target platform'). Add the Android host triples (generic + API 24,
both arches) to each variant's supportedTriples.
@cla-bot

cla-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

Thank you for your pull request and welcome to the Skip community. We require contributors to sign our contributor license agreement (CLA), and we don't seem to have the user(s) @hpr on file. In order for us to review and merge your code, for each noted user please add your GitHub username to Skip's .clabot file

@hpr

hpr commented Aug 18, 2026

Copy link
Copy Markdown
Author

recheck

@hpr hpr closed this Aug 18, 2026
@hpr hpr reopened this Aug 18, 2026
@cla-bot cla-bot Bot added the cla-signed label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant