Platform libs for macos_arm64
(cherry picked from commit abaa99d6cc993ec30b4b8342078b69cf9e4ee6ef)
This commit is contained in:
committed by
Vasily Levchenko
parent
fddf28ac47
commit
3796a6a94c
@@ -1,4 +1,4 @@
|
|||||||
depends = darwin posix
|
depends = darwin osx posix
|
||||||
language = Objective-C
|
language = Objective-C
|
||||||
package = platform.Hypervisor
|
package = platform.Hypervisor
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ headers = AppleTextureEncoder.h AssertMacros.h Availability.h AvailabilityIntern
|
|||||||
os/activity.h os/availability.h os/base.h os/lock.h \
|
os/activity.h os/availability.h os/base.h os/lock.h \
|
||||||
os/log.h os/object.h os/overflow.h os/signpost.h os/trace.h \
|
os/log.h os/object.h os/overflow.h os/signpost.h os/trace.h \
|
||||||
simd/simd.h sys/sysctl.h sys/user.h \
|
simd/simd.h sys/sysctl.h sys/user.h \
|
||||||
|
sys/_types/_os_inline.h \
|
||||||
net/if_media.h sys/disk.h sys/kernel_types.h
|
net/if_media.h sys/disk.h sys/kernel_types.h
|
||||||
|
|
||||||
headerFilter = **
|
headerFilter = **
|
||||||
@@ -39,5 +40,6 @@ excludedFunctions = __tg_promote KERNEL_AUDIT_TOKEN KERNEL_SECURITY_TOKEN \
|
|||||||
xpc_debugger_api_misuse_info \
|
xpc_debugger_api_misuse_info \
|
||||||
vm_stats
|
vm_stats
|
||||||
|
|
||||||
compilerOpts = -D_XOPEN_SOURCE -DSHARED_LIBBIND -D_DARWIN_NO_64_BIT_INODE -DSYSCTL_DEF_ENABLED
|
compilerOpts.macos_x64 = -D_XOPEN_SOURCE -DSHARED_LIBBIND -D_DARWIN_NO_64_BIT_INODE -DSYSCTL_DEF_ENABLED
|
||||||
|
compilerOpts.macos_arm64 = -D_XOPEN_SOURCE -DSHARED_LIBBIND -DSYSCTL_DEF_ENABLED
|
||||||
linkerOpts = -ldl -lz -lcurses -lbz2 -lcompression -late -lbsm
|
linkerOpts = -ldl -lz -lcurses -lbz2 -lcompression -late -lbsm
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
depends = darwin posix
|
depends = darwin posix
|
||||||
language = Objective-C
|
language = Objective-C
|
||||||
package = platform.osx
|
package = platform.osx
|
||||||
|
|
||||||
headers = NSSystemDirectories.h \
|
headers = NSSystemDirectories.h \
|
||||||
aliasdb.h bootparams.h bootstrap.h \
|
aliasdb.h bootparams.h bootstrap.h \
|
||||||
com_err.h \
|
com_err.h \
|
||||||
crt_externs.h \
|
crt_externs.h \
|
||||||
disktab.h dtrace.h \
|
disktab.h dtrace.h \
|
||||||
emmintrin.h eti.h expat.h \
|
eti.h expat.h \
|
||||||
expat_external.h form.h fsproperties.h get_compat.h \
|
expat_external.h form.h fsproperties.h get_compat.h \
|
||||||
gssapi.h histedit.h \
|
gssapi.h histedit.h \
|
||||||
krb5.h launch.h lber.h lber_types.h ldif.h libc.h libcharset.h \
|
krb5.h launch.h lber.h lber_types.h ldif.h libc.h libcharset.h \
|
||||||
libproc.h localcharset.h \
|
libproc.h localcharset.h \
|
||||||
mmintrin.h monitor.h \
|
monitor.h \
|
||||||
nc_tparm.h ncurses.h ncurses_dll.h \
|
nc_tparm.h ncurses.h ncurses_dll.h \
|
||||||
nlist.h \
|
nlist.h \
|
||||||
panel.h pcap-bpf.h pcap-namedb.h pcap.h printerdb.h \
|
panel.h pcap-bpf.h pcap-namedb.h pcap.h printerdb.h \
|
||||||
@@ -20,10 +21,15 @@ headers = NSSystemDirectories.h \
|
|||||||
struct.h term.h \
|
struct.h term.h \
|
||||||
term_entry.h termcap.h tic.h timeconv.h tzfile.h \
|
term_entry.h termcap.h tic.h timeconv.h tzfile.h \
|
||||||
unctrl.h vproc.h \
|
unctrl.h vproc.h \
|
||||||
xmmintrin.h \
|
|
||||||
atm/atm_types.h corpses/task_corpse.h \
|
atm/atm_types.h corpses/task_corpse.h \
|
||||||
hfs/hfs_format.h hfs/hfs_mount.h hfs/hfs_unistr.h \
|
hfs/hfs_format.h hfs/hfs_mount.h hfs/hfs_unistr.h \
|
||||||
sys/kauth.h
|
sys/kauth.h
|
||||||
|
headers.macos_x64 = \
|
||||||
|
emmintrin.h \
|
||||||
|
mmintrin.h \
|
||||||
|
xmmintrin.h
|
||||||
|
headers.macos_arm64 = \
|
||||||
|
arm64/hv/hv_kern_types.h
|
||||||
|
|
||||||
headerFilter = **
|
headerFilter = **
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ headers = alloca.h ar.h assert.h complex.h ctype.h dirent.h dlfcn.h err.h errno.
|
|||||||
sys/queue.h sys/select.h sys/shm.h sys/socket.h sys/stat.h \
|
sys/queue.h sys/select.h sys/shm.h sys/socket.h sys/stat.h \
|
||||||
sys/syslimits.h sys/time.h sys/times.h sys/utsname.h sys/wait.h
|
sys/syslimits.h sys/time.h sys/times.h sys/utsname.h sys/wait.h
|
||||||
|
|
||||||
compilerOpts = -D_XOPEN_SOURCE -DSHARED_LIBBIND -D_DARWIN_NO_64_BIT_INODE -D_DARWIN_C_SOURCE
|
compilerOpts.macos_x64 = -D_XOPEN_SOURCE -DSHARED_LIBBIND -D_DARWIN_NO_64_BIT_INODE -D_DARWIN_C_SOURCE
|
||||||
|
compilerOpts.macos_arm64 = -D_XOPEN_SOURCE -DSHARED_LIBBIND -D_DARWIN_C_SOURCE
|
||||||
# -D_ANSI_SOURCE, sigh, breaks user_addr_t
|
# -D_ANSI_SOURCE, sigh, breaks user_addr_t
|
||||||
excludedFunctions = KERNEL_AUDIT_TOKEN KERNEL_SECURITY_TOKEN add_profil \
|
excludedFunctions = KERNEL_AUDIT_TOKEN KERNEL_SECURITY_TOKEN add_profil \
|
||||||
addrsel_policy_init \
|
addrsel_policy_init \
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
../../../../dist/bin/run_konan defFileDependencies -target macos_x64 *.def
|
../../../../dist/bin/run_konan defFileDependencies -target macos_x64 -target macos_arm64 *.def
|
||||||
|
|||||||
Reference in New Issue
Block a user