build: adjust gcc/g++ version checks for newer apple compilers

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 46a129194de0f9e2f71b6526634569e1ec802504)
master
Felix Fietkau 5 years ago
parent 53a6aa5164
commit fcf87d5461
  1. 4
      include/prereq-build.mk

@ -37,7 +37,7 @@ $(eval $(call SetupHostCommand,gcc, \
gcc7 --version | grep gcc, \ gcc7 --version | grep gcc, \
gcc8 --version | grep gcc, \ gcc8 --version | grep gcc, \
gcc9 --version | grep gcc, \ gcc9 --version | grep gcc, \
gcc --version | grep Apple.LLVM )) gcc --version | grep -E 'Apple.(LLVM|clang)' ))
$(eval $(call TestHostCommand,working-gcc, \ $(eval $(call TestHostCommand,working-gcc, \
\nPlease reinstall the GNU C Compiler (4.8 or later) - \ \nPlease reinstall the GNU C Compiler (4.8 or later) - \
@ -56,7 +56,7 @@ $(eval $(call SetupHostCommand,g++, \
g++7 --version | grep g++, \ g++7 --version | grep g++, \
g++8 --version | grep g++, \ g++8 --version | grep g++, \
g++9 --version | grep g++, \ g++9 --version | grep g++, \
g++ --version | grep Apple.LLVM )) g++ --version | grep -E 'Apple.(LLVM|clang)' ))
$(eval $(call TestHostCommand,working-g++, \ $(eval $(call TestHostCommand,working-g++, \
\nPlease reinstall the GNU C++ Compiler (4.8 or later) - \ \nPlease reinstall the GNU C++ Compiler (4.8 or later) - \

Loading…
Cancel
Save