Commit a85d008a authored by n0099's avatar n0099
Browse files

wrapNonDeterministicGcc: override the param `cc` of `ccWrapper` instead of...

wrapNonDeterministicGcc: override the param `cc` of `ccWrapper` instead of override drv attr `env.cc`

This affect the value of attr path `pkgs.fastStdenv.cc.cc.buildFlags`:
before: `[ ]`
after: `[ "profiledbootstrap" ]`

ref: c577eb68
parent 2259340f
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -4263,13 +4263,11 @@ with pkgs;
  wrapNonDeterministicGcc =
    stdenv: ccWrapper:
    if ccWrapper.isGNU then
      ccWrapper.overrideAttrs (old: {
        env = old.env // {
          cc = old.env.cc.override {
      ccWrapper.override (prev: {
        cc = prev.cc.override {
          reproducibleBuild = false;
          profiledCompiler = with stdenv; (!isDarwin && hostPlatform.isx86);
        };
        };
      })
    else
      ccWrapper;