Files
swift-mirror/test/Distributed/lit.local.cfg
Saleem Abdulrasool 6792291d0c Distributed: enable the last batch of tests on Windows
This enables the last of the Distributed tests on Windows.  The addition
of the local configuration is required to deal with the async function
pointer handling being different on Windows.
2022-03-05 20:42:01 -08:00

17 lines
654 B
INI

# Make a local copy of the substitutions.
config.substitutions = list(config.substitutions)
def get_target_os():
import re
(run_cpu, run_vendor, run_os, run_version) = re.match('([^-]+)-([^-]+)-([^0-9]+)(.*)', config.variant_triple).groups()
return run_os
if get_target_os() in ['windows-msvc']:
config.substitutions.insert(0, ('%target-abi', 'WIN'))
config.substitutions.insert(0, ('%target-import-type', 'INDIRECT'))
else:
# FIXME(compnerd) do all the targets we currently support use SysV ABI?
config.substitutions.insert(0, ('%target-abi', 'SYSV'))
config.substitutions.insert(0, ('%target-import-type', 'DIRECT'))