marlin-calc: fix build with gcc 11

This commit is contained in:
Gabriel Ebner 2022-05-21 16:54:06 +02:00
parent d191eb270f
commit a453045324

View file

@ -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 \