3
0
Fork 0
forked from mirrors/nixpkgs
Commit graph

41 commits

Author SHA1 Message Date
Shea Levy fea2266290 llvm: Split llvmFull into separate derivations
Now most packages in the llvm suite are built as separate derivations.
The exceptions are:

* compiler-rt must currently be built with llvm. This increases llvm's
  size by 6 MB
* clang-tools-extra must be built with clang

In addition, the top-level llvm attribute is defaulted to llvm 3.4, and
llvm 3.3 must be accessed by the llvm_33 attribute. This is to make the
out-of-date packages obvious in the hope that eventually all will be
updated to work with 3.4 and 3.3 can be removed. I think we should keep
this policy in the future (latest llvm gets top-level name, the rest are
versioned until they can be removed).

The llvm packages (except libc++, which exception I will try to remove
on the next update) can all be accessed via the llvmPackages attribute,
and there are also aliases for the packages that already existed (llvm,
clang, and dragonegg).

Signed-off-by: Shea Levy <shea@shealevy.com>
2014-01-20 20:33:06 -05:00
Vladimír Čunát ac6761c908 Merge master into stdenv-updates
Conflicts:
	pkgs/applications/version-management/gource/default.nix
	pkgs/top-level/all-packages.nix
2014-01-20 19:39:28 +01:00
Shea Levy 55e6303d6a Add full llvm build, update libc++ and dragonegg
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>
2014-01-20 05:42:38 -05:00
Mathijs Kwik 6072a289fc llvm: no-rule-aarch64.patch is only needed on 3.3
the fix just missed 3.3 but it's in 3.4
see bottom of: http://llvm.org/bugs/show_bug.cgi?id=16625
2014-01-18 19:13:29 +01:00
Vladimír Čunát 0a58b512cb Merge master into stdenv-updates
Conflicts (simple):
	pkgs/development/compilers/gcc/4.8/default.nix
	pkgs/development/compilers/llvm/default.nix
	pkgs/development/libraries/gmp/5.1.1.nix
	pkgs/development/libraries/gmp/5.1.3.nix
	pkgs/development/libraries/gmp/5.1.x.nix
	pkgs/top-level/all-packages.nix
2014-01-18 14:46:20 +01:00
Vladimír Čunát ae0c9b626f llvm: add 3.4, urge for versioned usage
The 3.4 code was tested preliminary in x-updates,
described by 2e4eab1228.

Updates to llvm break builds of dependent packages (in all cases I've seen),
and often upstream isn't too fast in porting to the newest version.
Consequently, it seems better to keep more versions (two ATM),
both in one file to share eventual changes.
Also, using versioned llvm_* attributes is proposed because of this.
2014-01-13 21:53:50 +01:00
Vladimír Čunát 2265bab69d llvm: fix heavily parallel builds 2013-12-28 17:32:01 +01:00
Vladimír Čunát 4bcdeb49a1 mesa: update 9.1.6 -> 9.2.1, enable R600 LLVM stuff 2013-10-05 21:18:35 +02:00
Vladimír Čunát 0adae9f822 llvm: add support for R600
It will be useful for mesa >= 9.2.*
Also, I want to restart the build on Hydra, as it succeeds for me.
2013-09-24 23:10:48 +02:00
Vladimír Čunát 9475e4d50a llvm (merge amend): fix evaluation
Regular binutils now include gold.
2013-09-02 15:45:29 +02:00
Petr Rockai 8bc805a211 llvm: Build the LLVMgold.so plugin for ld.gold &c.
Conflicts (simple):
	pkgs/development/compilers/llvm/default.nix
2013-08-18 21:35:17 +02:00
Vladimír Čunát 625f40151b Merge branch 'master' into x-updates
Conflicts (a little tricky, I did some cleanup of interacting changes):
	pkgs/development/compilers/llvm/default.nix
	pkgs/development/libraries/libpng/default.nix
	pkgs/tools/package-management/nixops/default.nix
	pkgs/top-level/all-packages.nix
2013-08-02 18:30:53 +02:00
Peter Simons e2874236d3 llvm: fix meta.license attribute 2013-07-04 17:53:57 +02:00
Jason "Don" O'Conal 3b490b7ccb llvm: re-disabling tests
accidentally re-enabled doCheck, which isn't working yet
2013-07-04 19:02:40 +10:00
Jason "Don" O'Conal 67e5eb909b llvm: fix build on darwin
* add DYLD_LIBRARY_PATH
* don't build with shared libs
2013-07-04 08:48:55 +10:00
Shea Levy 9b502a9ae1 llvm: Update to 3.3
Signed-off-by: Shea Levy <shea@shealevy.com>
2013-06-21 19:18:52 -04:00
Vladimír Čunát 14f36162d2 llvm: switch back to cmake build, so now clang builds 2013-06-01 23:36:38 +02:00
Vladimír Čunát 70882b980c WARNING: history from now is going to change (mesa+llvm)
Current WIP, only tested nouveau (3D works very well).
2013-05-16 17:16:02 +02:00
Shea Levy 857742ea22 clang/llvm: 3.2 2013-01-22 14:33:55 -05:00
Shea Levy 5a6fd3d510 llvm: Bump to 3.1 2012-10-07 23:25:11 -04:00
Ludovic Courtès 04600bbec1 Darwin: Add mig', lipo', etc. to `stdenvNative'.
Consequently, remove `darwinLipoUtility', `darwinArchUtility', etc.

svn path=/nixpkgs/trunk/; revision=33893
2012-04-23 15:47:31 +00:00
Shea Levy dfb27bd181 llvm should build on darwin now
svn path=/nixpkgs/trunk/; revision=30958
2011-12-19 13:00:03 +00:00
Shea Levy 2a033caa1d llvm+clang don't yet build on non-Linux platforms
svn path=/nixpkgs/trunk/; revision=30957
2011-12-19 12:53:07 +00:00
Shea Levy 006d8dcdc1 clang-3.0
This required moving to the cmake build for llvm in order to build clang
separately from llvm.

svn path=/nixpkgs/trunk/; revision=30956
2011-12-19 12:48:09 +00:00
Shea Levy 332afc59aa llvm 3.0
This probably breaks clang. I will be updating clang to 3.0 when I can

svn path=/nixpkgs/trunk/; revision=30722
2011-12-03 23:47:59 +00:00
Shea Levy 7c32c9c426 llvm: Use the sw_vers program on darwin
svn path=/nixpkgs/trunk/; revision=29925
2011-10-20 10:15:54 +00:00
Shea Levy 188df14951 clang: Use configureFlags instead of env vars to tell which compiler to use
svn path=/nixpkgs/trunk/; revision=29922
2011-10-19 23:49:22 +00:00
Shea Levy 6e3cde6383 Enable building clang separately from llvm
Note that there is some duplication when building clang now. The llvm source
is unpacked twice, ./configure is run twice, and two small unit test
libraries are compiled twice. IMO this is a fair tradeoff for having
llvm be a separate build unaffected by changes to clang

svn path=/nixpkgs/trunk/; revision=29919
2011-10-19 20:57:18 +00:00
Shea Levy 94dbab27a3 Bootstrap clang with itself
svn path=/nixpkgs/trunk/; revision=29901
2011-10-19 17:11:26 +00:00
Shea Levy 1ed93241cd clang: Don't send extra -I flags to the linker
svn path=/nixpkgs/trunk/; revision=29883
2011-10-19 04:14:55 +00:00
Shea Levy db619f2d55 First try at a clang-wrapper. Hello world compiles\!
svn path=/nixpkgs/trunk/; revision=29879
2011-10-18 20:03:09 +00:00
Shea Levy 9783d27b7a Bump llvm and clang to 2.9
svn path=/nixpkgs/trunk/; revision=29878
2011-10-18 16:37:28 +00:00
Eelco Dolstra 4f87b5338c * Clang/LLVM updated to 2.8.
svn path=/nixpkgs/trunk/; revision=25777
2011-02-05 15:45:02 +00:00
Lluís Batlle i Rossell 9eb2cf4906 I forgot the licenses for llvm. Here they are.
svn path=/nixpkgs/trunk/; revision=22241
2010-06-12 22:30:09 +00:00
Lluís Batlle i Rossell 8db2f399d1 Changing clang derivation name from llvm-2.7 to clang-2.7. Clearer, I think.
svn path=/nixpkgs/trunk/; revision=22240
2010-06-12 22:14:43 +00:00
Lluís Batlle i Rossell 6bc2fcd511 Fixing the nixpkgs tarball build
Fixing the clang fetchsvn hash. I don't know why it does not match that given by nix-prefetch-svn, but
I set that given by nix-build.

svn path=/nixpkgs/trunk/; revision=22239
2010-06-12 22:01:41 +00:00
Lluís Batlle i Rossell 22a839c86d Making clang build for llvm 2.7
(I've not tested the usage of c++ headers though, but it builds c and c++ simple programs)

svn path=/nixpkgs/trunk/; revision=22236
2010-06-12 21:52:39 +00:00
Lluís Batlle i Rossell 1babf6ea14 Cleaning a bit what I commited about llvm, and making dragonegg build.
If passing to gcc4.5 the compile flag: "-fplugin=dragonegg.so" it will use the llvm optimizers and
code generators.

In that previous commit I enabled link time optimization and plugin support in gcc 4.5.0

svn path=/nixpkgs/trunk/; revision=22235
2010-06-12 20:54:35 +00:00
Lluís Batlle i Rossell e6ad625902 llvm update attempt + dragonegg
svn path=/nixpkgs/trunk/; revision=22234
2010-06-12 17:42:33 +00:00
Arie Middelkoop 33cd1691a6 Removed some of the buildInputs for the LLVM nix-expression that are not required.
svn path=/nixpkgs/trunk/; revision=11157
2008-03-17 11:28:52 +00:00
Arie Middelkoop c65d00efeb LLVM compiler
Low Level Virtual Machine
http://www.llvm.org/

svn path=/nixpkgs/trunk/; revision=11156
2008-03-17 11:18:21 +00:00