@@ -738,6 +738,7 @@ def build_swiftpm_with_cmake(args):
738
738
"-DSwiftCertificates_DIR=" + os .path .join (args .build_dirs ["swift-certificates" ], "cmake/modules" ),
739
739
"-DSwiftBuild_DIR=" + os .path .join (args .build_dirs ["swift-build" ], "cmake/modules" ),
740
740
"-DSWIFTPM_PATH_TO_SWIFT_SYNTAX_SOURCE=" + args .source_dirs ["swift-syntax" ],
741
+ "-DSwiftPMRuntime_MODULE_TRIPLE={}" .format ((get_build_target (args ), g_macos_deployment_target ) if platform .system () == 'Darwin' else get_build_target (args )),
741
742
]
742
743
743
744
if platform .system () == 'Darwin' :
@@ -751,6 +752,8 @@ def build_swiftpm_with_cmake(args):
751
752
mkdir_p (os .path .join (args .bootstrap_dir , "pm" , "ManifestAPI" ))
752
753
shutil .copy2 (os .path .join (args .bootstrap_dir , "Sources" , "Runtimes" , "PackageDescription" , "PackageDescription.swiftmodule" , "%s.swiftmodule" % triple ),
753
754
os .path .join (args .bootstrap_dir , "pm" , "ManifestAPI" , "PackageDescription.swiftmodule" ))
755
+ shutil .copy2 (os .path .join (args .bootstrap_dir , "Sources" , "Runtimes" , "CompilerPluginSupport" , "CompilerPluginSupport.swiftmodule" , "%s.swiftmodule" % triple ),
756
+ os .path .join (args .bootstrap_dir , "pm" , "ManifestAPI" , "CompilerPluginSupport.swiftmodule" ))
754
757
755
758
mkdir_p (os .path .join (args .bootstrap_dir , "pm" , "PluginAPI" ))
756
759
shutil .copy2 (os .path .join (args .bootstrap_dir , "Sources" , "Runtimes" , "PackagePlugin" , "PackagePlugin.swiftmodule" , "%s.swiftmodule" % triple ),
0 commit comments