Skip to content

Commit af14b65

Browse files
committed
bootstrap: force target on Darwin
1 parent da0a3f3 commit af14b65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Utilities/bootstrap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@ def build_swiftpm_with_cmake(args):
742742

743743
if platform.system() == 'Darwin':
744744
cmake_flags.append("-DCMAKE_C_FLAGS=-target %s%s" % (get_build_target(args), g_macos_deployment_target))
745+
cmake_flags.append("-DCMAKE_Swift_FLAGS=-target %s%s" % (get_build_target(args), g_macos_deployment_target))
745746
cmake_flags.append("-DCMAKE_OSX_DEPLOYMENT_TARGET=%s" % g_macos_deployment_target)
746747

747748
build_with_cmake(args, cmake_flags, ["swift-bootstrap", "PackageDescription", "PackagePlugin", "CompilerPluginSupport"], args.project_root, args.bootstrap_dir)

0 commit comments

Comments
 (0)