55e6303d6a
Some packages in the llvm suite (e.g. compiler-rt) cannot be built separate from the build of llvm, and while some others (e.g. clang) can the combined build is much better tested (we've had to work around annoying issues before). So this puts llvm, clang, clang-tools-extra, compiler-rt, lld, lldb, and polly all into one big build (llvmFull). This build includes a static llvm, as dynamic is similarly less tested and has known failures. This also updates libc++ and dragonegg. libc++ now builds against libc++abi as a separate package rather than building it during the libc++ build. The clang purity patch is gone. Instead, we simply set --sysroot to /var/empty for pure builds, as all impure paths are either looked up in the gcc prefix (which we hard-code at compile time) or in the sysroot. This also means that if NIX_ENFORCE_PURITY is 0 then clang will look in the normal Linux paths by default, which is the proper behavior IMO. polly required an updated isl. When stdenv-updates is merged, perhaps we can update the isl used by gcc and avoid having two versions. Since llvm on its own is now separate from the llvm used by clang, I've removed myself as maintainer from llvm and will leave maintenance of that to those who are interested in llvm separate from clang. Signed-off-by: Shea Levy <shea@shealevy.com>
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ stdenv, fetchsvn, libcxx, libunwind }:
|
|
let
|
|
rev = "199626";
|
|
in stdenv.mkDerivation {
|
|
name = "libcxxabi-pre-${rev}";
|
|
|
|
src = fetchsvn {
|
|
url = http://llvm.org/svn/llvm-project/libcxxabi/trunk;
|
|
rev = "199626";
|
|
sha256 = "0h1x1s40x5r65ar53rv34lmgcfil3zxaknqr64dka1mz29xhhrxy";
|
|
};
|
|
|
|
NIX_CFLAGS_LINK="-L${libunwind}/lib -lunwind";
|
|
|
|
postUnpack = ''
|
|
unpackFile ${libcxx.src}
|
|
export NIX_CFLAGS_COMPILE="-I${libunwind}/include -I$PWD/include -I$(readlink -f libcxx-*)/include"
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -d -m 755 $out/include $out/lib
|
|
install -m 644 lib/libc++abi.so.1.0 $out/lib
|
|
install -m 644 include/cxxabi.h $out/include
|
|
ln -s libc++abi.so.1.0 $out/lib/libc++abi.so
|
|
ln -s libc++abi.so.1.0 $out/lib/libc++abi.so.1
|
|
'';
|
|
|
|
patchPhase = "sed -e s,-lstdc++,, -i lib/buildit";
|
|
|
|
buildPhase = "(cd lib; ./buildit)";
|
|
|
|
meta = {
|
|
homepage = http://libcxxabi.llvm.org/;
|
|
description = "A new implementation of low level support for a standard C++ library";
|
|
license = "BSD";
|
|
maintainers = stdenv.lib.maintainers.shlevy;
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|