Skip to content

Commit 7499b21

Browse files
authored
Use 10.15 as the deployment target for building with CMake (#5937)
1 parent 82eec8d commit 7499b21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Utilities/bootstrap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ def build_with_cmake(args, cmake_args, ninja_args, source_path, build_dir):
497497
swift_flags += ' -module-cache-path "{}"'.format(os.path.join(build_dir, 'module-cache'))
498498

499499
cmd = [
500+
"env", "MACOSX_DEPLOYMENT_TARGET=%s" % (g_macos_deployment_target),
500501
args.cmake_path, "-G", "Ninja",
501502
"-DCMAKE_MAKE_PROGRAM=%s" % args.ninja_path,
502503
"-DCMAKE_BUILD_TYPE:=Debug",
@@ -516,6 +517,8 @@ def build_with_cmake(args, cmake_args, ninja_args, source_path, build_dir):
516517
if args.verbose:
517518
ninja_cmd.append("-v")
518519

520+
if platform.system() == 'Darwin':
521+
call(["sed", "-i", "", "s/macosx10.10/macosx%s/" % (g_macos_deployment_target), "build.ninja"], cwd=build_dir)
519522

520523
call(ninja_cmd + ninja_args, cwd=build_dir, verbose=args.verbose)
521524

0 commit comments

Comments
 (0)