From 659b388c143fcebc88e679a424b78cbc9db03e15 Mon Sep 17 00:00:00 2001 From: Liam Nichols Date: Wed, 23 Mar 2022 12:14:06 +0100 Subject: [PATCH] Build single arch binary for local use --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index d1dbb1e87..602c78472 100644 --- a/Rakefile +++ b/Rakefile @@ -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})