llvm-3.6 packages: Build everything (except clang and llvm) with clang

This commit is contained in:
Shea Levy 2015-03-07 13:08:34 +00:00
parent b37fd11351
commit e57e44f867
3 changed files with 21 additions and 16 deletions

View File

@ -1,6 +1,6 @@
{ pkgs, newScope, stdenv, isl, fetchurl }:
{ pkgs, newScope, stdenv, isl, fetchurl, overrideCC, wrapCC }:
let
callPackage = newScope (self // { inherit stdenv isl version fetch; });
callPackage = newScope (self // { inherit isl version fetch; });
version = "3.6.0";
@ -15,17 +15,21 @@ let
self = {
llvm = callPackage ./llvm.nix {
inherit compiler-rt_src;
inherit compiler-rt_src stdenv;
};
clang = callPackage ./clang {
inherit clang-tools-extra_src;
clang-unwrapped = callPackage ./clang {
inherit clang-tools-extra_src stdenv;
};
clang = wrapCC self.clang-unwrapped;
stdenv = overrideCC stdenv self.clang;
lldb = callPackage ./lldb.nix {};
libcxx = callPackage ./libc++ { stdenv = pkgs.clangStdenv; };
libcxx = callPackage ./libc++ {};
libcxxabi = callPackage ./libc++abi.nix { stdenv = pkgs.clangStdenv; };
libcxxabi = callPackage ./libc++abi.nix {};
};
in self

View File

@ -7,7 +7,7 @@
, which
, libedit
, llvm
, clang
, clang-unwrapped
, python
, version
}:
@ -29,7 +29,7 @@ stdenv.mkDerivation {
"-DCMAKE_BUILD_TYPE=Release"
"-DCMAKE_CXX_FLAGS=-std=c++11"
"-DLLDB_PATH_TO_LLVM_BUILD=${llvm}"
"-DLLDB_PATH_TO_CLANG_BUILD=${clang}"
"-DLLDB_PATH_TO_CLANG_BUILD=${clang-unwrapped}"
];
enableParallelBuilding = true;

View File

@ -3203,9 +3203,9 @@ let
ccl = callPackage ../development/compilers/ccl { };
clang = wrapCC llvmPackages.clang;
clang = llvmPackages.clang;
clang_36 = wrapCC llvmPackages_36.clang;
clang_36 = llvmPackages.clang;
clang_35 = wrapCC llvmPackages_35.clang;
clang_34 = wrapCC llvmPackages_34.clang;
clang_33 = wrapCC (clangUnwrapped llvm_33 ../development/compilers/llvm/3.3/clang.nix);
@ -3233,8 +3233,8 @@ let
};
#Use this instead of stdenv to build with clang
clangStdenv = if stdenv.isDarwin then stdenv else lowPrio (stdenvAdapters.overrideCC stdenv clang);
libcxxStdenv = stdenvAdapters.overrideCC stdenv (clangWrapSelf llvmPackages.clang);
clangStdenv = if stdenv.isDarwin then stdenv else lowPrio llvmPackages.stdenv;
libcxxStdenv = stdenvAdapters.overrideCC stdenv (clangWrapSelf llvmPackages.clang-unwrapped);
clean = callPackage ../development/compilers/clean { };
@ -3756,7 +3756,8 @@ let
};
llvmPackages_36 = import ../development/compilers/llvm/3.6 {
inherit pkgs stdenv newScope fetchurl isl;
inherit pkgs stdenv newScope fetchurl isl wrapCC;
inherit (stdenvAdapters) overrideCC;
};
manticore = callPackage ../development/compilers/manticore { };
@ -4837,8 +4838,8 @@ let
csslint = callPackage ../development/web/csslint { };
libcxx = llvmPackages_35.libcxx;
libcxxabi = llvmPackages_35.libcxxabi;
libcxx = llvmPackages.libcxx;
libcxxabi = llvmPackages.libcxxabi;
libsigrok = callPackage ../development/tools/libsigrok { };