Skip to content

test: format configuration to be more pythonic #33357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -702,10 +702,10 @@ config.substitutions.append(('%target-cpu', run_cpu))
target_os_abi = run_os
target_os_is_maccatalyst = "FALSE"
target_mandates_stable_abi = "FALSE"
if (run_cpu == 'arm64e'):
if run_cpu in ('arm64e',):
target_mandates_stable_abi = "TRUE"
config.available_features.add('swift_only_stable_abi')
if (run_os == 'maccatalyst'):
if run_os in ('maccatalyst',):
# For purposes of ABI, treat maccatalyst as macosx since the maccatalyst ABI
# must match the macosx ABI.
target_os_abi = 'macosx'
Expand All @@ -715,7 +715,12 @@ if (run_os == 'maccatalyst'):
if run_os in ('macosx',) and run_cpu in ('arm64',):
target_mandates_stable_abi = "TRUE"
config.available_features.add('swift_only_stable_abi')
if (run_os in ['linux-gnu', 'linux-gnueabihf', 'freebsd', 'openbsd', 'windows-cygnus', 'windows-gnu', 'windows-msvc', 'linux-android', 'linux-androideabi']):
if run_os in (
'linux-android', 'linux-androideabi', # Android
'freebsd', 'openbsd', # BSD
'linux-gnu', 'linux-gnueabihf', # Linux
'windows-cygnus', 'windows-gnu', 'windows-msvc', # Windows
):
target_mandates_stable_abi = "TRUE"
config.available_features.add('swift_only_stable_abi')
config.substitutions.append(('%target-os-abi', target_os_abi))
Expand Down