marlin-calc: fix build with gcc 11
This commit is contained in:
parent
d191eb270f
commit
a453045324
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,11 @@ stdenv.mkDerivation {
|
||||||
sha256 = "14sqajm361gnrcqv84g7kbmyqm8pppbhqsabszc4j2cn7vbwkdg5";
|
sha256 = "14sqajm361gnrcqv84g7kbmyqm8pppbhqsabszc4j2cn7vbwkdg5";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# missing header for gcc >= 11
|
||||||
|
sed -i '1i#include <limits>' Marlin/src/module/calc.cpp
|
||||||
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cd Marlin/src
|
cd Marlin/src
|
||||||
c++ module/planner.cpp module/calc.cpp feature/fwretract.cpp \
|
c++ module/planner.cpp module/calc.cpp feature/fwretract.cpp \
|
||||||
|
|
Loading…
Reference in a new issue