Skip to content

Commit 54296af

Browse files
committed
test: make target_build_swift_dylib work on Windows
Use %s instead of %r for proper expansion, the substitution is not a single argument. Use SubstituteCaptures as there is a backreference involved here.
1 parent e4a1fcf commit 54296af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/lit.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,9 @@ elif run_os in ['windows-msvc']:
823823
subst_target_swift_frontend_mock_sdk_after = ''
824824

825825
config.target_build_swift_dylib = \
826-
("%r -parse-as-library -emit-library -o '\\1'" % (config.target_build_swift))
826+
SubstituteCaptures("%s -parse-as-library -emit-library -o \\1" % (config.target_build_swift))
827+
config.target_add_rpath = r''
828+
827829
config.target_clang = \
828830
('clang++ -target %s %s' % (config.variant_triple, clang_mcp_opt))
829831
config.target_ld = \

0 commit comments

Comments
 (0)