diff --git a/TARGETS b/TARGETS index 4f836dad56..38f2b7550f 100644 --- a/TARGETS +++ b/TARGETS @@ -685,6 +685,8 @@ rocks_cpp_library_wrapper(name="rocksdb_stress_lib", srcs=[ ], headers=None) +cpp_binary_wrapper(name="db_stress", srcs=["db_stress_tool/db_stress.cc"], deps=[":rocksdb_stress_lib"], extra_preprocessor_flags=[], extra_bench_libs=False) + cpp_binary_wrapper(name="ribbon_bench", srcs=["microbench/ribbon_bench.cc"], deps=[], extra_preprocessor_flags=[], extra_bench_libs=True) cpp_binary_wrapper(name="db_basic_bench", srcs=["microbench/db_basic_bench.cc"], deps=[], extra_preprocessor_flags=[], extra_bench_libs=True) diff --git a/buckifier/buckify_rocksdb.py b/buckifier/buckify_rocksdb.py index bd6158a10f..e9b1a2959e 100644 --- a/buckifier/buckify_rocksdb.py +++ b/buckifier/buckify_rocksdb.py @@ -184,6 +184,10 @@ def generate_targets(repo_path, deps_map): src_mk.get("ANALYZER_LIB_SOURCES", []) + src_mk.get('STRESS_LIB_SOURCES', []) + ["test_util/testutil.cc"]) + # db_stress binary + TARGETS.add_binary("db_stress", + ["db_stress_tool/db_stress.cc"], + [":rocksdb_stress_lib"]) # bench binaries for src in src_mk.get("MICROBENCH_SOURCES", []): name = src.rsplit('/',1)[1].split('.')[0] if '/' in src else src.split('.')[0]