Commit Graph

11 Commits

Author SHA1 Message Date
Antonio Andelic
14c461338b Replay ZK logs using keeper-bench 2024-04-11 14:22:14 +02:00
Roman Vasin
8649c84461 Remove conditional linking 2023-07-20 13:28:37 +00:00
Roman Vasin
5bba0ff698 Fix build of keeper-bench 2023-06-16 20:13:36 +00:00
Robert Schulze
6848eafb39
Cleanup utils build 2023-05-06 17:11:06 +00:00
Azat Khuzhin
d761e24514 Do not build keeper-bench if rapidjson was disabled
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-03 09:49:47 +02:00
Antonio Andelic
6bc1ab7ab1 Add JSON output 2023-04-14 18:49:28 +00:00
Antonio Andelic
e2e32fa34c Add config 2023-04-06 10:25:37 +00:00
Robert Schulze
1a7727a254
Prefix overridden add_executable() command with "clickhouse_"
A simple HelloWorld program with zero includes except iostream triggers
a build of ca. 2000 source files. The reason is that ClickHouse's
top-level CMakeLists.txt overrides "add_executable()" to link all
binaries against "clickhouse_new_delete". This links against
"clickhouse_common_io", which in turn has lots of 3rd party library
dependencies ... Without linking "clickhouse_new_delete", the number of
compiled files for "HelloWorld" goes down to ca. 70.

As an example, the self-extracting-executable needs none of its current
dependencies but other programs may also benefit.

In order to restore access to the original "add_executable()", the
overriding version is now prefixed. There is precedence for a
"clickhouse_" prefix (as opposed to "ch_"), for example
"clickhouse_split_debug_symbols". In general prefixing makes sense also
because overriding CMake commands relies on undocumented behavior and is
considered not-so-great practice (*).

(*) https://crascit.com/2018/09/14/do-not-redefine-cmake-commands/
2022-07-11 19:36:18 +02:00
Azat Khuzhin
4a2bc64989 Introduce clickhouse_common_zookeeper_no_log (w/o extra deps for examples)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-11 23:51:41 +03:00
Raúl Marín
7f6bf6513f Link keeper-bench to clickhouse_common_zookeeper 2021-04-19 11:46:28 +02:00
alesapin
8653975f83 Some missed files 2021-04-13 15:36:47 +03:00