From b752c1148668e8b904e484c7bed7b76dfb0e30e0 Mon Sep 17 00:00:00 2001 From: Harry P Date: Fri, 14 Aug 2026 11:03:40 -0400 Subject: [PATCH] Use prebuilt static-MUSL skip binary target on Android hosts os(Android) is distinct from os(Linux) in Swift compilation conditions, so on Android hosts (e.g. Termux/bionic) the manifest fell through to the else branch and built skipstone + SwiftSyntax from source. That host build is enormous memory-wise and the static MUSL binary runs fine on bionic, so use the binary target there too. --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 9ea3415..27a00b5 100644 --- a/Package.swift +++ b/Package.swift @@ -34,7 +34,7 @@ if (env["SKIPLOCAL"] != nil || env["PWD"]?.hasSuffix("skipstone") == true) { } else { #if os(macOS) package.targets += [.binaryTarget(name: "skip", url: "https://source.skip.tools/skip/releases/download/1.9.5/skip-macos.zip", checksum: "3cf07daad97bf48145c4da0f91f5388e85a50a6016db2c35b0f6a84a6193a2df")] - #elseif os(Linux) + #elseif os(Linux) || os(Android) package.targets += [.binaryTarget(name: "skip", url: "https://source.skip.tools/skip/releases/download/1.9.5/skip-linux.zip", checksum: "17acfff4459c48b8245a8b77ce96a784c2a27fe4ff2e7e988128ff147085ed99")] #else package.dependencies += [.package(url: "https://source.skip.tools/skipstone.git", exact: "1.9.5")]