From 1f4feb7c6f2bb7d257e860b2d8413a746fbe50c8 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sun, 1 Jan 2023 11:12:23 -0600 Subject: avr-gcc: fix build on Darwin Adds a patch which fixes a compilation error generated by Clang 11 compiling GCC 11.3. --- pkgs/development/compilers/gcc/11/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/development/compilers/gcc/11/default.nix') 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; -- cgit 1.4.1