Build shared jemalloc in splitted mode

This commit is contained in:
Ivan Lezhankin 2020-03-21 22:49:26 +03:00
parent 40095f4ba5
commit 86cb4811b5
4 changed files with 6 additions and 6 deletions

View File

@ -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__)

View File

@ -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)

View File

@ -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);

View File

@ -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,