diff options
author | Nikolaus Demmel <nikolaus@nikolaus-demmel.de> | 2014-02-18 13:21:13 +0100 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2014-02-18 18:44:14 -0500 |
commit | efc9a4a324fa7046be9ec41431c3edf6f9be24ef (patch) | |
tree | 60f54503294f9bf2f7c03067382829af9aacae1c /SConstruct | |
parent | 640ec7cc23fa5e2f4cdc4eb1cccbd94be7b7ed88 (diff) | |
download | mongo-efc9a4a324fa7046be9ec41431c3edf6f9be24ef.tar.gz |
SERVER-12682 Add warning on OS X if libc++ is selected and osx-version-min is < 10.7.
Signed-off-by: Andrew Morrow <acm@10gen.com>
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index abc794769c6..197c82cd772 100644 --- a/SConstruct +++ b/SConstruct @@ -46,6 +46,9 @@ def findSettingsSetup(): sys.path.append( ".." ) sys.path.append( "../../" ) +def versiontuple(v): + return tuple(map(int, (v.split(".")))) + # --- platform identification --- # # This needs to precede the options section so that we can only offer some options on certain @@ -1219,6 +1222,8 @@ def doConfigure(myenv): if not using_clang(): print( 'libc++ is currently only supported for clang') Exit(1) + if darwin and has_option('osx-version-min') and versiontuple(min_version) < versiontuple('10.7'): + print("Warning: You passed option 'libc++'. You probably want to also pass 'osx-version-min=10.7' or higher for libc++ support.") if AddToCXXFLAGSIfSupported(myenv, '-stdlib=libc++'): myenv.Append(LINKFLAGS=['-stdlib=libc++']) else: |