mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
17 lines
654 B
INI
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'))
|
|
|