@@ -702,10 +702,10 @@ config.substitutions.append(('%target-cpu', run_cpu))
702
702
target_os_abi = run_os
703
703
target_os_is_maccatalyst = "FALSE"
704
704
target_mandates_stable_abi = "FALSE"
705
- if ( run_cpu == 'arm64e' ):
705
+ if run_cpu in ( 'arm64e' , ):
706
706
target_mandates_stable_abi = "TRUE"
707
707
config .available_features .add ('swift_only_stable_abi' )
708
- if ( run_os == 'maccatalyst' ):
708
+ if run_os in ( 'maccatalyst' , ):
709
709
# For purposes of ABI, treat maccatalyst as macosx since the maccatalyst ABI
710
710
# must match the macosx ABI.
711
711
target_os_abi = 'macosx'
@@ -715,7 +715,12 @@ if (run_os == 'maccatalyst'):
715
715
if run_os in ('macosx' ,) and run_cpu in ('arm64' ,):
716
716
target_mandates_stable_abi = "TRUE"
717
717
config .available_features .add ('swift_only_stable_abi' )
718
- if (run_os in ['linux-gnu' , 'linux-gnueabihf' , 'freebsd' , 'openbsd' , 'windows-cygnus' , 'windows-gnu' , 'windows-msvc' , 'linux-android' , 'linux-androideabi' ]):
718
+ if run_os in (
719
+ 'linux-android' , 'linux-androideabi' , # Android
720
+ 'freebsd' , 'openbsd' , # BSD
721
+ 'linux-gnu' , 'linux-gnueabihf' , # Linux
722
+ 'windows-cygnus' , 'windows-gnu' , 'windows-msvc' , # Windows
723
+ ):
719
724
target_mandates_stable_abi = "TRUE"
720
725
config .available_features .add ('swift_only_stable_abi' )
721
726
config .substitutions .append (('%target-os-abi' , target_os_abi ))
0 commit comments