2013-06-01 14:36:38 -07:00
|
|
|
{ stdenv, fetchurl, perl, groff, cmake, python, libffi }:
|
2008-03-17 04:18:21 -07:00
|
|
|
|
2013-06-21 16:18:52 -07:00
|
|
|
let version = "3.3"; in
|
2011-10-18 09:37:28 -07:00
|
|
|
|
2011-10-19 13:57:18 -07:00
|
|
|
stdenv.mkDerivation {
|
2011-10-18 09:37:28 -07:00
|
|
|
name = "llvm-${version}";
|
|
|
|
|
2008-03-17 04:18:21 -07:00
|
|
|
src = fetchurl {
|
2012-10-07 20:25:11 -07:00
|
|
|
url = "http://llvm.org/releases/${version}/llvm-${version}.src.tar.gz";
|
2013-06-21 16:18:52 -07:00
|
|
|
sha256 = "0y3mfbb5qzcpw3v5qncn69x1hdrrrfirgs82ypi2annhf0g6nxk8";
|
2008-03-17 04:18:21 -07:00
|
|
|
};
|
|
|
|
|
2013-06-21 16:18:52 -07:00
|
|
|
# The default rlimits are too low for shared libraries.
|
|
|
|
patches = [ ./more-memory-for-bugpoint.patch ];
|
2013-05-16 08:16:02 -07:00
|
|
|
|
2013-06-21 16:18:52 -07:00
|
|
|
# libffi was propagated before, but it wasn't even being used, so
|
|
|
|
# unless something needs it just an input is fine.
|
|
|
|
buildInputs = [ perl groff cmake python libffi ]; # ToDo: polly, libc++; enable cxx11?
|
2013-06-01 14:36:38 -07:00
|
|
|
|
|
|
|
# created binaries need to be run before installation... I coudn't find a better way
|
|
|
|
preBuild = ''export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:"`pwd`/lib'';
|
|
|
|
|
2013-06-21 16:18:52 -07:00
|
|
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" "-DBUILD_SHARED_LIBS=ON" "-DLLVM_ENABLE_FFI=ON" ];
|
2010-06-12 14:52:39 -07:00
|
|
|
|
2011-12-03 15:47:59 -08:00
|
|
|
enableParallelBuilding = true;
|
2013-06-21 16:18:52 -07:00
|
|
|
|
|
|
|
doCheck = true;
|
2011-12-03 15:47:59 -08:00
|
|
|
|
2010-06-12 13:54:35 -07:00
|
|
|
meta = {
|
|
|
|
homepage = http://llvm.org/;
|
|
|
|
description = "Collection of modular and reusable compiler and toolchain technologies";
|
2010-06-12 15:30:09 -07:00
|
|
|
license = "BSD";
|
2012-10-07 20:25:11 -07:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric shlevy raskin];
|
2011-12-19 05:00:03 -08:00
|
|
|
platforms = with stdenv.lib.platforms; all;
|
2010-06-12 13:54:35 -07:00
|
|
|
};
|
2008-03-17 04:18:21 -07:00
|
|
|
}
|