Skip to content

Commit

Permalink
gcc: fix mising avr limits.h
Browse files Browse the repository at this point in the history
Fixes #69172

(cherry picked from commit 7b58739)
  • Loading branch information
matthewbauer authored and Mic92 committed Sep 21, 2019
1 parent 1bf3db5 commit 62bdec6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pkgs/development/compilers/gcc/8/default.nix
Expand Up @@ -186,7 +186,12 @@ stdenv.mkDerivation ({
sed -i gcc/config/linux.h -e '1i#undef LOCAL_INCLUDE_DIR'
''
)
else "");
else "")
+ stdenv.lib.optionalString targetPlatform.isAvr ''
makeFlagsArray+=(
'LIMITS_H_TEST=false'
)
'';

inherit noSysDirs staticCompiler crossStageStatic
libcCross crossMingw;
Expand Down
7 changes: 6 additions & 1 deletion pkgs/development/compilers/gcc/9/default.nix
Expand Up @@ -185,7 +185,12 @@ stdenv.mkDerivation ({
sed -i gcc/config/linux.h -e '1i#undef LOCAL_INCLUDE_DIR'
''
)
else "");
else "")
+ stdenv.lib.optionalString targetPlatform.isAvr ''
makeFlagsArray+=(
'LIMITS_H_TEST=false'
)
'';

inherit noSysDirs staticCompiler crossStageStatic
libcCross crossMingw;
Expand Down

0 comments on commit 62bdec6

Please sign in to comment.