summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorRobert Guo <robertguo@me.com>2018-01-27 11:37:24 -0500
committerRobert Guo <robert.guo@10gen.com>2018-04-26 09:28:43 -0400
commitf745ad8be9c8c315d91dc7c559ab86bf9aeb7724 (patch)
tree4a9ec0c09b91729dc8d9999a1918a720f436f02e /SConstruct
parent527a7130a83cf37af81e2424910a6be0fdb51c49 (diff)
downloadmongo-f745ad8be9c8c315d91dc7c559ab86bf9aeb7724.tar.gz
SERVER-32785 integrate Google Benchmark with SCons
(cherry picked from commit 8d9b68094ca79bce5da7cf530a2e14383b466a72)
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 9 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 4cc8791a20e..245a2a90f58 100644
--- a/SConstruct
+++ b/SConstruct
@@ -298,6 +298,11 @@ add_option('use-system-valgrind',
nargs=0,
)
+add_option('use-system-google-benchmark',
+ help='use system version of Google benchmark library',
+ nargs=0,
+)
+
add_option('use-system-zlib',
help='use system version of zlib library',
nargs=0,
@@ -544,6 +549,7 @@ def variable_tools_converter(val):
'idl_tool',
"jsheader",
"mergelib",
+ "mongo_benchmark",
"mongo_integrationtest",
"mongo_unittest",
"textfile",
@@ -881,6 +887,8 @@ envDict = dict(BUILD_ROOT=buildDir,
UNITTEST_LIST='$BUILD_ROOT/unittests.txt',
INTEGRATION_TEST_ALIAS='integration_tests',
INTEGRATION_TEST_LIST='$BUILD_ROOT/integration_tests.txt',
+ BENCHMARK_ALIAS='benchmarks',
+ BENCHMARK_LIST='$BUILD_ROOT/benchmarks.txt',
CONFIGUREDIR='$BUILD_ROOT/scons/$VARIANT_DIR/sconf_temp',
CONFIGURELOG='$BUILD_ROOT/scons/config.log',
INSTALL_DIR=installDir,
@@ -3231,7 +3239,7 @@ env.SConscript(
variant_dir='$BUILD_DIR',
)
-all = env.Alias('all', ['core', 'tools', 'dbtest', 'unittests', 'integration_tests'])
+all = env.Alias('all', ['core', 'tools', 'dbtest', 'unittests', 'integration_tests', 'benchmarks'])
# run the Dagger tool if it's installed
if should_dagger: