summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndrew Morrow <andrew.morrow@10gen.com>2019-09-24 00:46:20 +0000
committerevergreen <evergreen@mongodb.com>2019-09-24 00:46:20 +0000
commitfc6ae12e7096f73f34969537324084b10d9c11ce (patch)
tree8d9f84d5c228de80f58cf85aa5777f7a3b15d305 /SConstruct
parentabc05fba0123c1dbc478f770e4aca6c763eaf073 (diff)
downloadmongo-fc6ae12e7096f73f34969537324084b10d9c11ce.tar.gz
SERVER-41570 Suppress Xcode 11 deleted default function warnings
(cherry picked from commit d7d9b79ae30cd3a7e35beaae7ce9fdc016e4bd17)
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 5 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index ad53d59279e..377365f0ffc 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1598,7 +1598,7 @@ elif env.TargetOSIs('freebsd'):
env.Append( CCFLAGS=[ "-fno-omit-frame-pointer" ] )
elif env.TargetOSIs('darwin'):
- env.Append( LIBS=["resolv"] )
+ env.Append( LIBS=["resolv"] )
elif env.TargetOSIs('openbsd'):
env.Append( LIBS=[ "kvm" ] )
@@ -2301,6 +2301,10 @@ def doConfigure(myenv):
# Enable sized deallocation support.
AddToCXXFLAGSIfSupported(myenv, '-fsized-deallocation')
+ # This warning was added in Apple clang version 11 and flags many explicitly defaulted move
+ # constructors and assignment operators for being implicitly deleted, which is not useful.
+ AddToCXXFLAGSIfSupported(myenv, "-Wno-defaulted-function-deleted")
+
# Check if we can set "-Wnon-virtual-dtor" when "-Werror" is set. The only time we can't set it is on
# clang 3.4, where a class with virtual function(s) and a non-virtual destructor throws a warning when
# it shouldn't.