GCC 4.6: Add a version with debugging symbols.

svn path=/nixpkgs/trunk/; revision=26714
This commit is contained in:
Ludovic Courtès 2011-04-06 12:52:33 +00:00
parent 36ed7a8eb8
commit 17fdaf6a7e
2 changed files with 14 additions and 1 deletions

View file

@ -132,7 +132,7 @@ in
assert gtk != null -> (filter (x: x == null) xlibs) == [];
stdenv.mkDerivation ({
name = "${name}-${version}" + crossNameAddon;
name = "${name}${if stripped then "" else "-debug"}-${version}" + crossNameAddon;
builder = ./builder.sh;

View file

@ -1747,6 +1747,19 @@ let
profiledCompiler = if stdenv.system == "armv5tel-linux" then false else true;
}));
# A non-stripped version of GCC.
gcc46_debug = lowPrio (wrapGCC (callPackage ../development/compilers/gcc-4.6 {
stripped = false;
inherit noSysDirs;
cross = null;
libcCross = null;
binutilsCross = null;
ppl = ppl0_11;
cloogppl = null;
}));
gccApple =
wrapGCC ( (if stdenv.system == "i686-darwin" then import ../development/compilers/gcc-apple else import ../development/compilers/gcc-apple64) {
inherit fetchurl stdenv noSysDirs;