Skip to content

Commit 9a43d56

Browse files
committed
Force macOS deployment target for OpenSSL when specified
1 parent 392b3d6 commit 9a43d56

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/openssl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def ssl_platform_flags(env):
8080
api = int(env["android_api_level"])
8181
args.append("-D__ANDROID_API__=%s" % api)
8282
elif env["platform"] == "macos":
83+
if env["macos_deployment_target"] != "default":
84+
args.append("-mmacosx-version-min=%s" % env["macos_deployment_target"])
8385
# OSXCross toolchain setup.
8486
if sys.platform != "darwin" and "OSXCROSS_ROOT" in os.environ:
8587
for k in ["CC", "CXX", "AR", "AS", "RANLIB"]:

0 commit comments

Comments
 (0)