Skip to content

Commit

Permalink
Build sourcekitten for arm and intel
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfairh committed Feb 21, 2022
1 parent 7869b5d commit 4021e76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,12 @@ begin
desc 'Vendors SourceKitten'
task :sourcekitten do
sk_dir = 'SourceKitten'
Dir.chdir(sk_dir) do
`swift build -c release`
bin_path = Dir.chdir(sk_dir) do
build_cmd = 'swift build -c release --arch arm64 --arch x86_64'
`#{build_cmd}`
`#{build_cmd} --show-bin-path`.chomp
end
FileUtils.cp_r "#{sk_dir}/.build/release/sourcekitten", 'bin'
FileUtils.cp_r "#{bin_path}/sourcekitten", 'bin'
end

#-- Theme Dependencies -----------------------------------------------------#
Expand Down
Binary file modified bin/sourcekitten
Binary file not shown.

0 comments on commit 4021e76

Please sign in to comment.