summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorRobert Guo <robertguo@me.com>2018-01-27 11:37:24 -0500
committerRobert Guo <robertguo@me.com>2018-01-27 11:39:46 -0500
commit8d9b68094ca79bce5da7cf530a2e14383b466a72 (patch)
tree32ae219957779a2baf60d26a42e7086e015f473a /SConstruct
parent0aeb5ce7e8d4a190dac43fd110533eef149f7880 (diff)
downloadmongo-8d9b68094ca79bce5da7cf530a2e14383b466a72.tar.gz
SERVER-32785 integrate Google Benchmark with SCons
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 9 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index fc59d5898f2..4b6ccd3bd83 100644
--- a/SConstruct
+++ b/SConstruct
@@ -306,6 +306,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,
@@ -557,6 +562,7 @@ def variable_tools_converter(val):
'idl_tool',
"jsheader",
"mergelib",
+ "mongo_benchmark",
"mongo_integrationtest",
"mongo_unittest",
"textfile",
@@ -901,6 +907,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,
@@ -3267,7 +3275,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: