From 77eeed6a8206cc7d34c96d07b3523cd5a68b4253 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 28 Nov 2019 22:29:42 +0100 Subject: [PATCH] makepanda: discourage targeting macOS older than 10.9 (as per #300) --- makepanda/makepanda.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 26b075baf5..a1ac4aca11 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -273,6 +273,13 @@ def parseopts(args): assert OSXTARGET[0] == 10 except: usage("Invalid setting for OSXTARGET") + + if OSXTARGET < (10, 9): + print("=========================================================================") + print("WARNING: Support for macOS versions before 10.9 has been discontinued.") + print("WARNING: For more information, or any questions, please visit:") + print(" https://github.com/panda3d/panda3d/issues/300") + print("=========================================================================") else: OSXTARGET = None @@ -378,6 +385,8 @@ elif target == 'darwin': else: maj, min = platform.mac_ver()[0].split('.')[:2] osxver = int(maj), int(min) + if osxver < (10, 9): + osxver = (10, 9) arch_tag = GetTargetArch() PLATFORM = 'macosx-{0}.{1}-{2}'.format(osxver[0], osxver[1], arch_tag)