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):