summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct11
1 files changed, 11 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 5e02f368632..401deab573c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -440,6 +440,14 @@ add_option('cache-dir',
help='Specify the directory to use for caching objects if --cache is in use',
)
+add_option("experimental-decimal-support",
+ choices=['on', 'off'],
+ default='off',
+ const='on',
+ help="Enable experimental decimal128 type support",
+ nargs='?',
+)
+
def find_mongo_custom_variables():
files = []
for path in sys.path:
@@ -1364,6 +1372,9 @@ if get_option('wiredtiger') == 'on':
else:
wiredtiger = True
+if get_option('experimental-decimal-support') == 'on':
+ env.SetConfigHeaderDefine("MONGO_CONFIG_EXPERIMENTAL_DECIMAL_SUPPORT")
+
if env['TARGET_ARCH'] == 'i386':
# If we are using GCC or clang to target 32 bit, set the ISA minimum to 'nocona',
# and the tuning to 'generic'. The choice of 'nocona' is selected because it