summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/11/default.nix
diff options
context:
space:
mode:
authorThomas Watson <twatson52@icloud.com>2023-01-01 11:12:23 -0600
committerThomas Watson <twatson52@icloud.com>2023-01-01 11:12:23 -0600
commit1f4feb7c6f2bb7d257e860b2d8413a746fbe50c8 (patch)
tree7fceef2c0a0aaeadc27f25922c806a9f744b683f /pkgs/development/compilers/gcc/11/default.nix
parent5be120bac3d30631cd903010b20fbc80a5d81eba (diff)
downloadnixpkgs-1f4feb7c6f2bb7d257e860b2d8413a746fbe50c8.tar
nixpkgs-1f4feb7c6f2bb7d257e860b2d8413a746fbe50c8.tar.gz
nixpkgs-1f4feb7c6f2bb7d257e860b2d8413a746fbe50c8.tar.bz2
nixpkgs-1f4feb7c6f2bb7d257e860b2d8413a746fbe50c8.tar.lz
nixpkgs-1f4feb7c6f2bb7d257e860b2d8413a746fbe50c8.tar.xz
nixpkgs-1f4feb7c6f2bb7d257e860b2d8413a746fbe50c8.tar.zst
nixpkgs-1f4feb7c6f2bb7d257e860b2d8413a746fbe50c8.zip
avr-gcc: fix build on Darwin
Adds a patch which fixes a compilation error generated by Clang 11
compiling GCC 11.3.
Diffstat (limited to 'pkgs/development/compilers/gcc/11/default.nix')
-rw-r--r--pkgs/development/compilers/gcc/11/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gcc/11/default.nix b/pkgs/development/compilers/gcc/11/default.nix
index de764b9ccc7..20b9c32bdf8 100644
--- a/pkgs/development/compilers/gcc/11/default.nix
+++ b/pkgs/development/compilers/gcc/11/default.nix
@@ -72,6 +72,8 @@ let majorVersion = "11";
           sha256 = "sha256-LFAXUEoYD7YeCG8V9mWanygyQOI7U5OhCRIKOVCCDAg=";
         })
       ]
+      # https://github.com/osx-cross/homebrew-avr/issues/280#issuecomment-1272381808
+      ++ optional (stdenv.isDarwin && targetPlatform.isAvr) ./avr-gcc-11.3-darwin.patch
 
       # Obtain latest patch with ../update-mcfgthread-patches.sh
       ++ optional (!crossStageStatic && targetPlatform.isMinGW && threadsCross.model == "mcf") ./Added-mcf-thread-model-support-from-mcfgthread.patch;