Skip to content

Commit 88a8498

Browse files
authored
Merge pull request swiftlang#33357 from compnerd/pythonista
test: format configuration to be more pythonic
2 parents 9e81823 + bea0238 commit 88a8498

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/lit.cfg

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,10 +702,10 @@ config.substitutions.append(('%target-cpu', run_cpu))
702702
target_os_abi = run_os
703703
target_os_is_maccatalyst = "FALSE"
704704
target_mandates_stable_abi = "FALSE"
705-
if (run_cpu == 'arm64e'):
705+
if run_cpu in ('arm64e',):
706706
target_mandates_stable_abi = "TRUE"
707707
config.available_features.add('swift_only_stable_abi')
708-
if (run_os == 'maccatalyst'):
708+
if run_os in ('maccatalyst',):
709709
# For purposes of ABI, treat maccatalyst as macosx since the maccatalyst ABI
710710
# must match the macosx ABI.
711711
target_os_abi = 'macosx'
@@ -715,7 +715,12 @@ if (run_os == 'maccatalyst'):
715715
if run_os in ('macosx',) and run_cpu in ('arm64',):
716716
target_mandates_stable_abi = "TRUE"
717717
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+
):
719724
target_mandates_stable_abi = "TRUE"
720725
config.available_features.add('swift_only_stable_abi')
721726
config.substitutions.append(('%target-os-abi', target_os_abi))

0 commit comments

Comments
 (0)