Skip to content

Commit 06cd691

Browse files
committed
Remove clone-swift.sh and CloneSwiftPlugin in favor of submodule
Swift headers are now provided via the Checkouts/swift git submodule, so the manual clone script, build tool plugin, and CI action are no longer needed.
1 parent d6eaa6f commit 06cd691

6 files changed

Lines changed: 4 additions & 178 deletions

File tree

.github/actions/checkout-swift-headers/action.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,6 @@ extension [SwiftSetting] {
266266
}
267267
}
268268

269-
// MARK: - Plugin
270-
271-
let swiftClonePlugin = Target.plugin(
272-
name: "CloneSwiftPlugin",
273-
capability: .buildTool()
274-
)
275-
276269
// MARK: - Targets
277270

278271
let platformTarget = Target.target(
@@ -304,7 +297,7 @@ let openAttributeGraphCxxTarget = Target.target(
304297
linkerSettings: [
305298
.linkedLibrary("z"),
306299
],
307-
plugins: [.plugin(name: swiftClonePlugin.name)]
300+
plugins: []
308301
)
309302
let openAttributeGraphTarget = Target.target(
310303
name: "OpenAttributeGraph",
@@ -447,7 +440,6 @@ if computeCondition {
447440
package.targets.append(target)
448441
} else {
449442
package.targets.append(contentsOf: [
450-
swiftClonePlugin,
451443
platformTarget,
452444
utilitiesTarget,
453445
openAttributeGraphTarget,

Plugins/CloneSwiftPlugin/plugin.swift

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,10 @@ The current suggested toolchain to build the project is Swift 6.1.2 / Xcode 16.4
6464

6565
### Clone Swift headers
6666

67-
The project requires Swift toolchain headers for compilation. You can either clone them manually or let the build plugin handle it:
67+
The project requires Swift toolchain headers for compilation. They are included as a git submodule:
6868

6969
```shell
70-
# Option 1: Clone headers manually
71-
./Scripts/clone-swift.sh
72-
73-
# Option 2: Let the build plugin clone headers (requires --disable-sandbox)
74-
swift build --disable-sandbox
70+
git submodule update --init
7571
```
7672

7773
## License

Scripts/clone-swift.sh

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)