Skip to content

Commit 9bf7a6e

Browse files
committed
[cxx-interop][test] cleanup the lit.local.cfg for reverse Interop tests
1 parent abc8aa6 commit 9bf7a6e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/Interop/lit.local.cfg

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ def get_target_os():
66
(run_cpu, run_vendor, run_os, run_version) = re.match('([^-]+)-([^-]+)-([^0-9]+)(.*)', config.variant_triple).groups()
77
return run_os
88

9-
libc_opt = ''
109
clang_opt = ''
1110

1211
if get_target_os() in ['windows-msvc']:
1312
config.substitutions.insert(0, ('%target-abi', 'WIN'))
14-
#libc_opt = '-libc MT '
13+
# Clang should build object files with link settings equivalent to -libc MD
14+
# when building for the MSVC target.
1515
clang_opt = '-D_MT -D_DLL -Xclang --dependent-lib=msvcrt -Xclang --dependent-lib=oldnames '
1616
else:
1717
# FIXME(compnerd) do all the targets we currently support use SysV ABI?
1818
config.substitutions.insert(0, ('%target-abi', 'SYSV'))
1919

20-
config.substitutions.insert(0, ('%target-interop-build-swift', '%target-build-swift -Xfrontend -enable-cxx-interop ' + libc_opt))
20+
# Enable C++ interop when compiling Swift sources.
21+
config.substitutions.insert(0, ('%target-interop-build-swift',
22+
'%target-build-swift -Xfrontend -enable-cxx-interop '))
23+
# Build C++ files with matching link settings, if required by the target.
2124
config.substitutions.insert(0, ('%target-interop-build-clangxx', '%target-clangxx ' + clang_opt))

0 commit comments

Comments
 (0)