Skip to content

Commit a8a3aec

Browse files
committed
bootstrap: force target triple
1 parent 86f887c commit a8a3aec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Utilities/bootstrap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ logging.basicConfig(
4242
]),
4343
level=logging.INFO,
4444
)
45-
g_macos_deployment_target = '12.0'
45+
g_macos_deployment_target = '15.0'
4646

4747
g_shared_lib_prefix = "lib"
4848
if platform.system() == 'Darwin':
@@ -738,6 +738,8 @@ def build_swiftpm_with_cmake(args):
738738
"-DSwiftCertificates_DIR=" + os.path.join(args.build_dirs["swift-certificates"], "cmake/modules"),
739739
"-DSwiftBuild_DIR=" + os.path.join(args.build_dirs["swift-build"], "cmake/modules"),
740740
"-DSWIFTPM_PATH_TO_SWIFT_SYNTAX_SOURCE=" + args.source_dirs["swift-syntax"],
741+
"-DCMAKE_Swift_COMPILER_TARGET={}".format(get_build_target(args) + g_macos_deployment_target if platform.system() == 'Darwin' else get_build_target(args)),
742+
"-DSwiftPMRuntime_MODULE_TRIPLE={}".format(get_build_target(args) + g_macos_deployment_target if platform.system() == 'Darwin' else get_build_target(args)),
741743
]
742744

743745
if platform.system() == 'Darwin':

0 commit comments

Comments
 (0)