Add `macOS_arm64_mixed` platform.

This commit is contained in:
Matthieu Gautier 2023-03-29 14:57:04 +02:00
parent 52335fbd32
commit de25a1e63b
1 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import subprocess
from kiwixbuild._global import option from kiwixbuild._global import option
from kiwixbuild.utils import pj, xrun_find from kiwixbuild.utils import pj, xrun_find
from .base import PlatformInfo, MetaPlatformInfo from .base import PlatformInfo, MetaPlatformInfo, MixedMixin
class ApplePlatformInfo(PlatformInfo): class ApplePlatformInfo(PlatformInfo):
@ -152,6 +152,15 @@ class macOSArm64(ApplePlatformInfo):
min_iphoneos_version = None min_iphoneos_version = None
class macOSArm64Mixed(MixedMixin('macOS_arm64'), ApplePlatformInfo):
name = 'macOS_arm64_mixed'
arch = cpu = 'arm64'
host = 'aarch64-apple-darwin'
target = 'arm64-apple-macos11'
sdk_name = 'macosx'
min_iphoneos_version = None
class macOSx64(ApplePlatformInfo): class macOSx64(ApplePlatformInfo):
name = 'macOS_x86_64' name = 'macOS_x86_64'
arch = cpu = 'x86_64' arch = cpu = 'x86_64'