From f157211eb5cdee1c6032e1ae477110b3f7174e59 Mon Sep 17 00:00:00 2001 From: werner mendizabal Date: Mon, 15 Jan 2024 15:24:10 -0600 Subject: [PATCH] Allow setting the osxcross target --- tools/macos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/macos.py b/tools/macos.py index 0c75e4a7..8b294a08 100644 --- a/tools/macos.py +++ b/tools/macos.py @@ -10,7 +10,8 @@ def options(opts): opts.Add("macos_deployment_target", "macOS deployment target", "default") opts.Add("macos_sdk_path", "macOS SDK path", "") if has_osxcross(): - opts.Add("osxcross_sdk", "OSXCross SDK version", "darwin16") + osxcross_sdk = os.environ.get("OSXCROSS_TARGET", "darwin16") + opts.Add("osxcross_sdk", "OSXCross SDK version", osxcross_sdk) def exists(env):