xscale-* | xscalee[bl]-*)
cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
;;
- arm64-* | aarch64le-*)
+ arm64-* | arm64_32-* | aarch64le-*)
cpu=aarch64
;;
| hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
| sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
| hiux* | abug | nacl* | netware* | windows* \
- | os9* | macos* | osx* | ios* \
+ | os9* | macos* | osx* | ios* | watchos* | tvos* \
| mpw* | magic* | mmixware* | mon960* | lnews* \
| amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
| aos* | aros* | cloudabi* | sortix* | twizzler* \
;;
os2-emx)
;;
+ ios*-simulator | tvos*-simulator | watchos*-simulator)
+ ;;
*-eabi* | *-gnueabi*)
;;
-*)
class ios_simulator_i386_platform(i386_platform):
- triple = 'i386-apple-darwin11'
target = 'i386-apple-ios-simulator'
directory = 'darwin_ios'
sdk = 'iphonesimulator'
class ios_simulator_x86_64_platform(x86_64_platform):
- triple = 'x86_64-apple-darwin13'
target = 'x86_64-apple-ios-simulator'
directory = 'darwin_ios'
sdk = 'iphonesimulator'
class ios_simulator_arm64_platform(arm64_platform):
- triple = 'aarch64-apple-darwin20'
target = 'arm64-apple-ios-simulator'
directory = 'darwin_ios'
sdk = 'iphonesimulator'
class ios_device_armv7_platform(armv7_platform):
- triple = 'arm-apple-darwin11'
target = 'armv7-apple-ios'
directory = 'darwin_ios'
sdk = 'iphoneos'
class ios_device_arm64_platform(arm64_platform):
- triple = 'aarch64-apple-darwin13'
target = 'arm64-apple-ios'
directory = 'darwin_ios'
sdk = 'iphoneos'
class desktop_x86_64_platform(x86_64_platform):
- triple = 'x86_64-apple-darwin10'
target = 'x86_64-apple-macos'
directory = 'darwin_osx'
sdk = 'macosx'
class desktop_arm64_platform(arm64_platform):
- triple = 'aarch64-apple-darwin20'
target = 'arm64-apple-macos'
directory = 'darwin_osx'
sdk = 'macosx'
class tvos_simulator_x86_64_platform(x86_64_platform):
- triple = 'x86_64-apple-darwin13'
target = 'x86_64-apple-tvos-simulator'
directory = 'darwin_tvos'
sdk = 'appletvsimulator'
class tvos_simulator_arm64_platform(arm64_platform):
- triple = 'aarch64-apple-darwin20'
target = 'arm64-apple-tvos-simulator'
directory = 'darwin_tvos'
sdk = 'appletvsimulator'
class tvos_device_arm64_platform(arm64_platform):
- triple = 'aarch64-apple-darwin13'
target = 'arm64-apple-tvos'
directory = 'darwin_tvos'
sdk = 'appletvos'
class watchos_simulator_i386_platform(i386_platform):
- triple = 'i386-apple-darwin11'
target = 'i386-apple-watchos-simulator'
directory = 'darwin_watchos'
sdk = 'watchsimulator'
class watchos_simulator_x86_64_platform(x86_64_platform):
- triple = 'x86_64-apple-darwin13'
target = 'x86_64-apple-watchos-simulator'
directory = 'darwin_watchos'
sdk = 'watchsimulator'
class watchos_simulator_arm64_platform(arm64_platform):
- triple = 'aarch64-apple-darwin20'
target = 'arm64-apple-watchos-simulator'
directory = 'darwin_watchos'
sdk = 'watchsimulator'
class watchos_device_armv7k_platform(armv7_platform):
- triple = 'arm-apple-darwin11'
target = 'armv7k-apple-watchos'
directory = 'darwin_watchos'
sdk = 'watchos'
class watchos_device_arm64_32_platform(arm64_platform):
- triple = 'aarch64-apple-darwin13'
target = 'arm64_32-apple-watchos'
directory = 'darwin_watchos'
sdk = 'watchos'
working_dir = os.getcwd()
try:
os.chdir(build_dir)
- subprocess.check_call(['../configure', '-host', platform.triple], env=env)
+ subprocess.check_call(
+ [
+ "../configure",
+ f"--host={platform.target}",
+ ] + (
+ [] if platform.sdk == "macosx" else [f"--build={os.uname().machine}-apple-darwin"]
+ ),
+ env=env
+ )
finally:
os.chdir(working_dir)