summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorRaymond Jacobson <raymond.jacobson@10gen.com>2015-07-15 11:39:41 -0400
committerDavid Hatch <david.hatch@mongodb.com>2015-07-31 15:30:46 -0400
commit8b19e377c452374125aca99aa9f9c8ed912ac2b1 (patch)
tree8b49e5614d102cd677fed0b16aedb97731cbfc3f /SConstruct
parent9ca37ee188c73256610b105b1b5097a605e54697 (diff)
downloadmongo-8b19e377c452374125aca99aa9f9c8ed912ac2b1.tar.gz
SERVER-19613 Add experimental Decimal128 build flag
Add scons build parameter --experimental-decimal-support=on, which enables experimental support of a 128 bit decimal type.
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