From 17fdaf6a7ea614157601b5e6e0e0cfb00044a4a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 6 Apr 2011 12:52:33 +0000 Subject: [PATCH] GCC 4.6: Add a version with debugging symbols. svn path=/nixpkgs/trunk/; revision=26714 --- pkgs/development/compilers/gcc-4.6/default.nix | 2 +- pkgs/top-level/all-packages.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/gcc-4.6/default.nix b/pkgs/development/compilers/gcc-4.6/default.nix index a7233693a6b..0d8f534e286 100644 --- a/pkgs/development/compilers/gcc-4.6/default.nix +++ b/pkgs/development/compilers/gcc-4.6/default.nix @@ -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; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6c8e6a70323..96e22017bfa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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;