Add support for MacOS on ARM

Also build with real -no-pie on ghactions, and fix SDL include directories (it's probably blind luck that they worked correctly on most systems).
This commit is contained in:
Tamás Bálint Misius
2022-02-16 13:31:31 +01:00
parent 6ef505ccca
commit 656ace10c6
24 changed files with 143 additions and 69 deletions

View File

@@ -0,0 +1,16 @@
[built-in options]
c_args = [ '-arch', 'arm64', '-mmacosx-version-min=10.15' ]
cpp_args = [ '-arch', 'arm64', '-mmacosx-version-min=10.15' ]
c_link_args = [ '-arch', 'arm64', '-mmacosx-version-min=10.15' ]
cpp_link_args = [ '-arch', 'arm64', '-mmacosx-version-min=10.15' ]
[binaries]
c = 'clang'
cpp = 'clang++'
strip = 'strip'
[host_machine]
system = 'darwin'
cpu_family = 'aarch64'
cpu = 'armv8'
endian = 'little'