summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2022-04-13 11:36:53 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-18 16:23:30 +0000
commitc9c6b145e47ce97f077bc1af3d266db64e8afb65 (patch)
tree75cffd948f94ec2f732b7e5345bd51f267b4f366 /SConstruct
parent8ad97ab6e15eb185438f37b2e9a2e3d9724f9493 (diff)
downloadmongo-c9c6b145e47ce97f077bc1af3d266db64e8afb65.tar.gz
SERVER-55204 Error on fallthrough unless the attribute is used
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 408693bf142..6aa3b3aded5 100644
--- a/SConstruct
+++ b/SConstruct
@@ -2899,18 +2899,23 @@ def doConfigure(myenv):
def AddToCFLAGSIfSupported(env, flag):
return AddFlagIfSupported(env, 'C', '.c', flag, False, CFLAGS=[flag])
+ env.AddMethod(AddToCFLAGSIfSupported)
def AddToCCFLAGSIfSupported(env, flag):
return AddFlagIfSupported(env, 'C', '.c', flag, False, CCFLAGS=[flag])
+ env.AddMethod(AddToCCFLAGSIfSupported)
def AddToCXXFLAGSIfSupported(env, flag):
return AddFlagIfSupported(env, 'C++', '.cpp', flag, False, CXXFLAGS=[flag])
+ env.AddMethod(AddToCXXFLAGSIfSupported)
def AddToLINKFLAGSIfSupported(env, flag):
return AddFlagIfSupported(env, 'C', '.c', flag, True, LINKFLAGS=[flag])
+ env.AddMethod(AddToLINKFLAGSIfSupported)
def AddToSHLINKFLAGSIfSupported(env, flag):
return AddFlagIfSupported(env, 'C', '.c', flag, True, SHLINKFLAGS=[flag])
+ env.AddMethod(AddToSHLINKFLAGSIfSupported)
if myenv.ToolchainIs('gcc', 'clang'):
# This tells clang/gcc to use the gold linker if it is available - we prefer the gold linker