Skip to content

Commit

Permalink
Build single arch binary for local use
Browse files Browse the repository at this point in the history
  • Loading branch information
liamnichols committed Mar 23, 2022
1 parent 03250cf commit 659b388
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ task :build, [:build_fat] do |t, args|
print_info "Building project (fat: #{args[:build_fat]})"

# Use xcodebuild due to https://bugs.swift.org/browse/SR-15802
xcpretty %Q(xcodebuild -scheme sourcery -destination generic/platform=macOS -archivePath #{BUILD_DIR}sourcery.xcarchive archive)
cmd = %Q(xcodebuild -scheme sourcery -destination generic/platform=macOS -archivePath #{BUILD_DIR}sourcery.xcarchive archive)
cmd << " ARCHS=#{`uname -m`.chomp}" unless args[:build_fat]
xcpretty cmd

# Prepare the export directory
sh %Q(rm -fr #{CLI_DIR})
Expand Down

0 comments on commit 659b388

Please sign in to comment.