Skip to content

Fix the Android build on Swift 6.4 - #750

Merged
piercifani merged 1 commit into
skiptools:mainfrom
this-is-daniru:fix/android-swift-6.4
Oct 25, 2026
Merged

piercifani merged 1 commit into
skiptools:mainfrom
this-is-daniru:fix/android-swift-6.4

Conversation

@this-is-daniru

@this-is-daniru this-is-daniru commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

The Android build is broken on Swift 6.4 (SPI build): 6.4 started compiling SkipDrive for Android, and ToolSupport.swift hits #error("Unsupported platform") there.

SkipDrive only runs Gradle on the host, and the package already treats it as macOS/Catalyst/Linux-only (see the SkipTest condition in Package.swift and the guard in XCGradleHarness.swift). So rather than porting the posix_spawn code to Bionic, this just adds !os(Android) to the existing #if !SKIP guards in SkipDrive and its tests.

Checked with Swift 6.4.1: swift build --swift-sdk swift-6.4.1-RELEASE_android --triple aarch64-unknown-linux-android28 fails before and passes after (also with --build-tests), and swift test on macOS gives the same result as on main.

Skip Pull Request Checklist:

  • REQUIRED: I have signed the Contributor Agreement
  • REQUIRED: I have tested my change locally with swift test
  • OPTIONAL: I have tested my change on an iOS simulator or device
  • OPTIONAL: I have tested my change on an Android emulator or device

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

  • Claude Code reproduced the failure, did the probes comparing the code to Bionic. I reviewed every changed line, chose the solution, ran the checks above


@cla-bot

cla-bot Bot commented Oct 22, 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) @this-is-daniru 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

@cla-bot cla-bot Bot added the cla-signed Automatically-added indication of a signed Contributor License Agreement label Oct 22, 2026
@piercifani

Copy link
Copy Markdown
Contributor

Thanks for flagging, looking into it

@piercifani
piercifani merged commit 9928235 into skiptools:main Oct 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed Automatically-added indication of a signed Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants