Skip to content

Commit e6b9ab1

Browse files
committed
Add support for Apple Silicon
1 parent 740b454 commit e6b9ab1

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.1
1+
5.3

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ addons:
33
update: true
44
language: swift
55
os: osx
6-
osx_image: xcode11.3
6+
osx_image: xcode12.2
77
before_install:
88
- cd "$(mktemp -d)"
99
- echo "859c18f80d547d0911fafe1a83696a19dfc6bfdeea69129c0097fd34cfe56ceb ./shellcheck.rb" >> formulas.sha256sum

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: build
22
build: ## Build debug target for development.
3-
swift build
3+
swift build --arch arm64 --arch x86_64
44

55
.PHONY: help
66
help: ## Print help information.

script/archive

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ build_release_target() {
1111

1212
# Sandbox must be disabled for Homebrew builds. See
1313
# https://github.com/yonaskolb/XcodeGen/issues/51#issuecomment-331615462
14-
swift build -c release -Xswiftc -Osize ${DISABLE_SANDBOX:+--disable-sandbox}
14+
swift build --configuration release --arch arm64 --arch x86_64 \
15+
-Xswiftc -Osize ${DISABLE_SANDBOX:+--disable-sandbox}
1516

1617
mkdir -p "$ARCHIVE_DIR"
17-
cp .build/release/zero "$ARCHIVE_DIR"
18+
cp .build/apple/Products/Release/zero "$ARCHIVE_DIR"
1819
strip "$ARCHIVE_DIR/zero"
1920
set +x
2021

0 commit comments

Comments
 (0)