mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Build shared jemalloc in splitted mode
This commit is contained in:
parent
40095f4ba5
commit
86cb4811b5
@ -1,12 +1,12 @@
|
||||
#include "coverage.h"
|
||||
|
||||
#include <common/config_common.h>
|
||||
|
||||
#if WITH_COVERAGE
|
||||
|
||||
# include <mutex>
|
||||
|
||||
# include <unistd.h>
|
||||
|
||||
|
||||
# if defined(__clang__)
|
||||
extern "C" void __llvm_profile_dump();
|
||||
# elif defined(__GNUC__) || defined(__GNUG__)
|
||||
|
@ -49,7 +49,7 @@ if (ENABLE_JEMALLOC)
|
||||
list(APPEND SRCS ${LIBRARY_DIR}/src/zone.c)
|
||||
endif ()
|
||||
|
||||
add_library(jemalloc STATIC ${SRCS})
|
||||
add_library(jemalloc ${SRCS})
|
||||
target_include_directories(jemalloc PRIVATE ${LIBRARY_DIR}/include)
|
||||
target_include_directories(jemalloc PUBLIC include)
|
||||
if (ARCH_AMD64)
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
#if USE_REPLXX
|
||||
# include <common/ReplxxLineReader.h>
|
||||
#elif USE_READLINE
|
||||
#elif defined(USE_READLINE) && USE_READLINE
|
||||
# include <common/ReadlineLineReader.h>
|
||||
#else
|
||||
# include <common/LineReader.h>
|
||||
@ -504,7 +504,7 @@ private:
|
||||
|
||||
#if USE_REPLXX
|
||||
ReplxxLineReader lr(Suggest::instance(), history_file, '\\', config().has("multiline") ? ';' : 0);
|
||||
#elif USE_READLINE
|
||||
#elif defined(USE_READLINE) && USE_READLINE
|
||||
ReadlineLineReader lr(Suggest::instance(), history_file, '\\', config().has("multiline") ? ';' : 0);
|
||||
#else
|
||||
LineReader lr(history_file, '\\', config().has("multiline") ? ';' : 0);
|
||||
|
@ -44,7 +44,7 @@ ASTPtr evaluateConstantExpressionOrIdentifierAsLiteral(const ASTPtr & node, cons
|
||||
ASTPtr evaluateConstantExpressionForDatabaseName(const ASTPtr & node, const Context & context);
|
||||
|
||||
/** Try to fold condition to countable set of constant values.
|
||||
* @param condition a condition that we try to fold.
|
||||
* @param node a condition that we try to fold.
|
||||
* @param target_expr expression evaluated over a set of constants.
|
||||
* @return optional blocks each with a single row and a single column for target expression,
|
||||
* or empty blocks if condition is always false,
|
||||
|
Loading…
Reference in New Issue
Block a user