Skip to content

Commit 2867df3

Browse files
authored
Support Swift 5.6 (#1298)
* Update SourceKitten to work on Swift 5.6, version 0.32.0 * Build sourcekitten binary for arm and intel * Spec update is to fix submodule URLs
1 parent 04c906d commit 2867df3

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
##### Breaking
44

5-
* When building with Swift 5.6 and not passing `—module` to Jazzy, declarations
5+
* When building with Swift 5.6 and not passing `-module` to Jazzy, declarations
66
may not be correctly identified as undocumented and docs may include unwanted
77
extensions. Pass `—-module MyModuleName` to fix this.
88
[John Fairhurst](https://github.com/johnfairh)
@@ -16,6 +16,9 @@
1616
[John Fairhurst](https://github.com/johnfairh)
1717
[#900](https://github.com/realm/jazzy/issues/900)
1818

19+
* Support Swift 5.6.
20+
[John Fairhurst](https://github.com/johnfairh)
21+
1922
##### Bug Fixes
2023

2124
* In Swift symbolgraph mode, stop including extensions to types that are beneath

Rakefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,12 @@ begin
105105
desc 'Vendors SourceKitten'
106106
task :sourcekitten do
107107
sk_dir = 'SourceKitten'
108-
Dir.chdir(sk_dir) do
109-
`swift build -c release`
108+
bin_path = Dir.chdir(sk_dir) do
109+
build_cmd = 'swift build -c release --arch arm64 --arch x86_64'
110+
`#{build_cmd}`
111+
`#{build_cmd} --show-bin-path`.chomp
110112
end
111-
FileUtils.cp_r "#{sk_dir}/.build/release/sourcekitten", 'bin'
113+
FileUtils.cp_r "#{bin_path}/sourcekitten", 'bin'
112114
end
113115

114116
#-- Theme Dependencies -----------------------------------------------------#

SourceKitten

Submodule SourceKitten updated 59 files

bin/sourcekitten

4.49 MB
Binary file not shown.

spec/integration_specs

0 commit comments

Comments
 (0)