Skip to content

Commit

Permalink
clickhouse: link with lld
Browse files Browse the repository at this point in the history
lld buildInput is still needed for the library.

Related: #24744
  • Loading branch information
orivej committed Mar 3, 2020
1 parent 0da63e8 commit a8e06a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions pkgs/servers/clickhouse/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, libtool, ninja
{ stdenv, fetchFromGitHub, cmake, libtool, lldClang, ninja
, boost, brotli, capnproto, cctz, clang-unwrapped, double-conversion, gperftools
, icu, jemalloc, libcpuid, libxml2, lld, llvm, lz4, libmysqlclient, openssl
, poco, protobuf, rapidjson, re2, rdkafka, readline, sparsehash, unixODBC
Expand All @@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
sha256 = "0ck6kcifj7y4i2j1jj1a9vf5nfpp9mxk5x8y8557zp9yayjm9qyr";
};

nativeBuildInputs = [ cmake libtool ninja ];
nativeBuildInputs = [ cmake libtool lldClang.bintools ninja ];
buildInputs = [
boost brotli capnproto cctz clang-unwrapped double-conversion gperftools
icu jemalloc libcpuid libxml2 lld llvm lz4 libmysqlclient openssl
Expand All @@ -26,7 +26,6 @@ stdenv.mkDerivation rec {

cmakeFlags = [
"-DENABLE_TESTS=OFF"
"-DLINKER_NAME=gold" # lld is not wrapped with ld-wrapper.sh, does not set rpath.
"-DUNBUNDLED=ON"
"-DUSE_STATIC_LIBRARIES=OFF"
];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15254,7 +15254,7 @@ in

clickhouse = callPackage ../servers/clickhouse {
# clickhouse doesn't build on llvm8.
inherit (llvmPackages_7) clang-unwrapped lld llvm;
inherit (llvmPackages_7) clang-unwrapped lld lldClang llvm;
};

couchdb = callPackage ../servers/http/couchdb {
Expand Down

0 comments on commit a8e06a8

Please sign in to comment.