ml-explore / ml-explore/mlx-swift

Use of `BuildToolPlugin`

Open
#263 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
2k
Forks
349
Avg merge
4d 19h
Merged PRs (30d)
13

Description

I noticed in the README.md that it says:

SwiftPM (command line) cannot build the Metal shaders so the ultimate build has to be done via Xcode.

and

Although SwiftPM (command line) cannot build the Metal shaders, xcodebuild can and it can be used to do command line builds:

# build and run tests
xcodebuild test -scheme mlx-swift-Package -destination 'platform=OS X'
# build Tutorial
xcodebuild build -scheme Tutorial -destination 'platform=OS X'

Can we use BuildToolPlugin ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading README.md and the documented xcodebuild commands, then investigate SwiftPM's BuildToolPlugin support for the Metal shader build described there. Determine whether the plugin can replace the current command-line workflow; done means the approach is either implemented and documented or its limitation is clearly recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.