Skip to content

Commit

Permalink
Merge pull request #224944 from amjoseph-nixpkgs/pr/fix-amjoseph-stup…
Browse files Browse the repository at this point in the history
…idity

gcc: do not --disable-bootstrap, create libgcc output, or create checksum output on Darwin
  • Loading branch information
Artturin authored Apr 6, 2023
2 parents 4253816 + 1b77171 commit aae463d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/compilers/gcc/11/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ with builtins;

let majorVersion = "11";
version = "${majorVersion}.3.0";
disableBootstrap = true;
disableBootstrap = !stdenv.hostPlatform.isDarwin;

inherit (stdenv) buildPlatform hostPlatform targetPlatform;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/gcc/12/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ with builtins;

let majorVersion = "12";
version = "${majorVersion}.2.0";
disableBootstrap = true;
disableBootstrap = !stdenv.hostPlatform.isDarwin;

inherit (stdenv) buildPlatform hostPlatform targetPlatform;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/gcc/common/checksum.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}:

let
enableChecksum = (with stdenv; buildPlatform == hostPlatform && hostPlatform == targetPlatform) && langC && langCC;
enableChecksum = (with stdenv; buildPlatform == hostPlatform && hostPlatform == targetPlatform) && langC && langCC && !stdenv.hostPlatform.isDarwin;
in
(pkg: pkg.overrideAttrs (previousAttrs: lib.optionalAttrs enableChecksum {
outputs = previousAttrs.outputs ++ lib.optionals enableChecksum [ "checksum" ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/gcc/common/libgcc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}:

let
enableLibGccOutput = (with stdenv; targetPlatform == hostPlatform) && !langJit;
enableLibGccOutput = (with stdenv; targetPlatform == hostPlatform) && !langJit && !stdenv.hostPlatform.isDarwin;
in
(pkg: pkg.overrideAttrs (previousAttrs: lib.optionalAttrs ((!langC) || langJit || enableLibGccOutput) {
outputs = previousAttrs.outputs ++ lib.optionals enableLibGccOutput [ "libgcc" ];
Expand Down

0 comments on commit aae463d

Please sign in to comment.