summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2020-02-04 16:40:20 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-24 19:15:57 +0000
commit1525d54f235715d10e41711122a448bd5253588d (patch)
treee03a3ee55653ff6c7ec3b5f4d95e5d58e0e06e11 /SConstruct
parent1cb6ac41648ab8bcc926a1dae6345a01c735ee52 (diff)
downloadmongo-1525d54f235715d10e41711122a448bd5253588d.tar.gz
SERVER-46197 Make build flag to disable diagnostic latches
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 10 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index b51e87f1a1e..398f278e2f4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -320,6 +320,13 @@ add_option('use-sasl-client',
nargs=0,
)
+add_option('use-diagnostic-latches',
+ choices=['on', 'off'],
+ default='on',
+ help='Enable annotated Mutex types',
+ type='choice',
+)
+
# Most of the "use-system-*" options follow a simple form.
for pack in [
('abseil-cpp',),
@@ -3478,6 +3485,9 @@ def doConfigure(myenv):
if posix_monotonic_clock:
conf.env.SetConfigHeaderDefine("MONGO_CONFIG_HAVE_POSIX_MONOTONIC_CLOCK")
+ if get_option('use-diagnostic-latches') == 'off':
+ conf.env.SetConfigHeaderDefine("MONGO_CONFIG_USE_RAW_LATCHES")
+
if (conf.CheckCXXHeader( "execinfo.h" ) and
conf.CheckDeclaration('backtrace', includes='#include <execinfo.h>') and
conf.CheckDeclaration('backtrace_symbols', includes='#include <execinfo.h>') and