From b3367608654d5ae827ecb0b6d7afe17b241daa7b Mon Sep 17 00:00:00 2001 From: Andrew Morrow Date: Thu, 21 Nov 2019 21:04:00 +0000 Subject: SERVER-44687 Enforce macOS 10.12 target minimum --- SConstruct | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/SConstruct b/SConstruct index 321ce8595ff..1a3c9cb46fc 100644 --- a/SConstruct +++ b/SConstruct @@ -2190,7 +2190,7 @@ def doConfigure(myenv): conf.Finish() - # We require macOS 10.10, iOS 10.2, or tvOS 10.2 + # We require macOS 10.12 or newer if env.TargetOSIs('darwin'): # TODO: Better error messages, mention the various -mX-version-min-flags in the error, and @@ -2201,12 +2201,8 @@ def doConfigure(myenv): #include #include - #if TARGET_OS_OSX && (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10) + #if TARGET_OS_OSX && (__MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_12) #error 1 - #elif TARGET_OS_IOS && (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_2) - #error 2 - #elif TARGET_OS_TV && (__TV_OS_VERSION_MIN_REQUIRED < __TVOS_10_1) - #error 3 #endif """ @@ -2220,7 +2216,7 @@ def doConfigure(myenv): }) if not conf.CheckDarwinMinima(): - conf.env.ConfError("Required target minimum of macOS 10.10, iOS 10.2, or tvOS 10.1 not found") + conf.env.ConfError("Required target minimum of macOS 10.12 not found") conf.Finish() -- cgit v1.2.1