@@ -1764,7 +1764,7 @@ elif run_os in ['windows-msvc']:
1764
1764
subst_target_swift_frontend_mock_sdk_after = ''
1765
1765
1766
1766
config .target_build_swift_dylib = \
1767
- SubstituteCaptures (r"%s -parse-as-library -emit-library -o \1" % (
1767
+ SubstituteCaptures (r"%s -parse-as-library -emit-library -o \1\2 " % (
1768
1768
escape_for_substitute_captures (config .target_build_swift )))
1769
1769
config .target_add_rpath = r''
1770
1770
@@ -1902,7 +1902,7 @@ elif (run_os in ['linux-gnu', 'linux-gnueabihf', 'freebsd', 'openbsd', 'windows-
1902
1902
config .target_codesign = "echo"
1903
1903
config .target_build_swift_dylib = SubstituteCaptures (
1904
1904
f"{ escape_for_substitute_captures (config .target_build_swift )} "
1905
- r" -parse-as-library -emit-library -o '\1'"
1905
+ r" -parse-as-library -emit-library -o '\1\2 '"
1906
1906
)
1907
1907
config .target_add_rpath = SubstituteCaptures (r'-Xlinker -rpath -Xlinker \1' )
1908
1908
config .target_swift_frontend = (
@@ -1996,7 +1996,7 @@ elif run_os == 'linux-androideabi' or run_os == 'linux-android':
1996
1996
config .target_codesign = "echo"
1997
1997
config .target_build_swift_dylib = SubstituteCaptures (
1998
1998
f"{ escape_for_substitute_captures (config .target_build_swift )} "
1999
- r" -parse-as-library -emit-library -o '\1'"
1999
+ r" -parse-as-library -emit-library -o '\1\2 '"
2000
2000
)
2001
2001
config .target_add_rpath = SubstituteCaptures (r'-Xlinker -rpath -Xlinker \1' )
2002
2002
config .target_swift_frontend = ' ' .join ([
@@ -2083,7 +2083,7 @@ elif kIsWASI:
2083
2083
config .target_codesign = "echo"
2084
2084
config .target_build_swift_dylib = SubstituteCaptures (
2085
2085
f"{ escape_for_substitute_captures (config .target_build_swift )} "
2086
- r" -parse-as-library -emit-library -static -o '\1'"
2086
+ r" -parse-as-library -emit-library -static -o '\1\2 '"
2087
2087
)
2088
2088
config .target_add_rpath = ''
2089
2089
config .target_swift_frontend = ' ' .join ([
@@ -2167,7 +2167,7 @@ elif config.external_embedded_platform:
2167
2167
config .target_codesign = "echo"
2168
2168
config .target_build_swift_dylib = SubstituteCaptures (
2169
2169
f"{ escape_for_substitute_captures (config .target_build_swift )} "
2170
- r" -parse-as-library -emit-library -static -o '\1'"
2170
+ r" -parse-as-library -emit-library -static -o '\1\2 '"
2171
2171
)
2172
2172
config .target_add_rpath = ''
2173
2173
config .target_swift_frontend = ' ' .join ([
0 commit comments