Skip to content

Commit c78674f

Browse files
authored
Merge pull request swiftlang#40796 from compnerd/literally
test: add a local lit configuration for Interop
2 parents ce2fe03 + aec240e commit c78674f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/Interop/lit.local.cfg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Make a local copy of the substitutions.
2+
config.substitutions = list(config.substitutions)
3+
4+
def get_target_os():
5+
import re
6+
(run_cpu, run_vendor, run_os, run_version) = re.match('([^-]+)-([^-]+)-([^0-9]+)(.*)', config.variant_triple).groups()
7+
return run_os
8+
9+
if get_target_os() in ['windows-msvc']:
10+
config.substitutions.insert(0, ('%target-abi', 'WIN'))
11+
else:
12+
# FIXME(compnerd) do all the targets we currently support use SysV ABI?
13+
config.substitutions.insert(0, ('%target-abi', 'SYSV'))
14+

0 commit comments

Comments
 (0)