Skip to content

Commit 8d327ca

Browse files
committed
Add support for aarch64-apple-darwin
1 parent d98eeda commit 8d327ca

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ jobs:
55
strategy:
66
matrix:
77
os: [macos-15-intel, macos-26-intel]
8-
# TODO: fix macos-latest (aarch64 assembly issue?)
9-
#include:
10-
#- os: macos-latest
11-
# config: --host=aarch64-apple-darwin
8+
include:
9+
- os: macos-latest
10+
config: --host=aarch64-apple-darwin
1211
runs-on: ${{ matrix.os }}
1312
steps:
1413
- uses: actions/checkout@v6

driver.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ main(int argc, char *argv[])
392392
if (hasprefix(target, "x86_64-apple-")) {
393393
arch = "x86_64-sysv";
394394
qbearch = "amd64_apple";
395+
} else if (hasprefix(target, "aarch64-apple-")) {
396+
arch = "aarch64";
397+
qbearch = "arm64_apple";
395398
} else if (hasprefix(target, "x86_64-") || hasprefix(target, "amd64-")) {
396399
arch = "x86_64-sysv";
397400
qbearch = "amd64_sysv";

0 commit comments

Comments
 (0)