forked from mirrors/nixpkgs
* Add an option to GCC to build a profiled compiler (which is about
5-10% faster). svn path=/nixpkgs/trunk/; revision=1108
This commit is contained in:
parent
56fd464a72
commit
d92fa0bf37
|
@ -67,6 +67,10 @@ preConfigure() {
|
|||
preConfigure=preConfigure
|
||||
|
||||
|
||||
makeFlags="bootstrap"
|
||||
if test -z "$profiledCompiler"; then
|
||||
makeFlags="bootstrap"
|
||||
else
|
||||
makeFlags="profiledbootstrap"
|
||||
fi
|
||||
|
||||
genericBuild
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ stdenv, fetchurl, patch, noSysDirs
|
||||
, langC ? true, langCC ? true, langF77 ? false
|
||||
, profiledCompiler ? false
|
||||
}:
|
||||
|
||||
assert langC;
|
||||
|
@ -14,5 +15,5 @@ stdenv.mkDerivation {
|
|||
# !!! apply only if noSysDirs is set
|
||||
patches = [./no-sys-dirs.patch];
|
||||
buildInputs = [patch];
|
||||
inherit noSysDirs langC langCC langF77;
|
||||
inherit noSysDirs langC langCC langF77 profiledCompiler;
|
||||
}
|
||||
|
|
|
@ -213,6 +213,7 @@ rec {
|
|||
gcc = (import ../development/compilers/gcc-3.4) {
|
||||
inherit fetchurl stdenv noSysDirs;
|
||||
patch = gnupatch;
|
||||
profiledCompiler = true;
|
||||
};
|
||||
binutils = stdenv.gcc.binutils;
|
||||
glibc = stdenv.gcc.glibc;
|
||||
|
|
Loading…
Reference in a new issue