Skip to content

Add command plugin for Metal library generation#106

Merged
NakaokaRei merged 2 commits into
masterfrom
codex/metal-library-command-plugin
Jun 7, 2026
Merged

Add command plugin for Metal library generation#106
NakaokaRei merged 2 commits into
masterfrom
codex/metal-library-command-plugin

Conversation

@NakaokaRei

Copy link
Copy Markdown
Owner

Summary

  • add a SwiftPM command plugin named build-metal-library
  • compile TemplateMatching.metal to AIR and link the bundled .metallib through xcrun
  • request package-directory write permission only when the command is invoked
  • keep scripts/build-metallib.sh as a compatibility wrapper around the plugin
  • document the Metal Toolchain requirement for library developers

Usage

swift package --allow-writing-to-package-directory build-metal-library

Package consumers continue using the committed .metallib and do not need the optional Metal Toolchain component.

Verification

  • command appears in swift package plugin --list
  • plugin regenerates a valid macOS MetalLib
  • compatibility script succeeds
  • swift test --parallel (116 tests)
  • swift build -c release

@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

🧪 Test Results

✅ All Tests Passed!


Workflow run: 27081373145
Powered by xcbeautify 🎨

@NakaokaRei NakaokaRei merged commit a944169 into master Jun 7, 2026
5 checks passed
@NakaokaRei NakaokaRei deleted the codex/metal-library-command-plugin branch June 7, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant