maybe build fat binary for arm64

This commit is contained in:
alex 2021-08-22 17:28:30 +01:00
parent 10db562d8d
commit e20fefbb1e
No known key found for this signature in database
GPG Key ID: E907B20C17C70B03

View File

@ -16,7 +16,7 @@ jobs:
}
- {
OS: 'macos-latest',
CFLAGS: '-std=gnu89 -Wno-return-type -Wno-error -Wno-implicit-function-declaration',
CFLAGS: '-std=gnu89 -Wno-return-type -Wno-error -Wno-implicit-function-declaration -arch x86_64 -arch arm64',
HOST: 'i386-apple-darwin'
}
@ -39,6 +39,11 @@ jobs:
shell: bash
run: |
./configure --target=mips-nintendo-nu64 --prefix=/opt/cross --with-gnu-as --disable-gprof --disable-gdb --disable-werror --host=${{ matrix.TARGET.HOST }} --build=${{ matrix.TARGET.HOST }}
- name: Stub arch64 (Apple Silicon) host
shell: bash
if: matrix.TARGET.OS == 'macos-latest'
run: |
echo '#include "config/i386/xm-darwin.h"' >> config.h
- name: Make
continue-on-error: true
shell: bash
@ -56,7 +61,6 @@ jobs:
with:
name: cc1-${{ matrix.TARGET.OS }}
path: |
as
cpp
cc1
xgcc