[Optimizations] remove fastStdenv override

This commit is contained in:
Antoine Viallon 2024-07-30 21:17:27 +02:00
parent d9ea216ea8
commit 57134dbfe3
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -112,30 +112,10 @@ in {
++ (traceValSeq (forEach config.system.replaceRuntimeDependencies (x: lib.getName x.oldDependency )))
);
nixpkgs.overlays = mkAfter [
(self: super: {
fastStdenv = super.overrideCC super.gccStdenv (super.buildPackages.gcc_latest.overrideAttrs (old:
let
optimizedAttrs = {}
// {
configureFlags = [
"--with-cpu-64=${generalCfg.cpu.arch}" "--with-arch-64=${generalCfg.cpu.arch}"
"--with-tune-64=${generalCfg.cpu.tune}"
"--with-build-config=bootstrap-lto-lean"
];
}
;
ccWithProfiling = old.cc.overrideAttrs (_: { buildFlags = [ "profiledbootstrap" ]; } );
in {
cc = addAttrs ccWithProfiling optimizedAttrs;
}
));
})
(self: super: {
jetbrains = super.jetbrains // {
jdk = optimizePkg {} super.jetbrains.jdk;
};
})
];
};