Browse code

build: detect GCC 11

Anthony Alba authored on 05/11/2021 09:38:24 • Daniel-Constantin Mierla committed on 05/11/2021 10:23:40
Showing 1 changed files
... ...
@@ -308,7 +308,9 @@ ifneq (,$(findstring gcc, $(CC_LONGVER)))
308 308
 					-e 's/9\.[0-9]\..*/9.0+/' \
309 309
 					-e 's/9\.[0-9]$$/9.0+/' \
310 310
 					-e 's/10\.[0-9]\..*/9.0+/' \
311
-					-e 's/10\.[0-9]$$/9.0+/')
311
+					-e 's/10\.[0-9]$$/9.0+/' \
312
+					-e 's/11\.[0-9]\..*/9.0+/' \
313
+					-e 's/11\.[0-9]$$/9.0+/')
312 314
 ifeq (,$(strip $(filter-out 3.0 3.4 4.x 4.2+ 4.5+ 5.0+ 6.0+ 7.0+ 8.0+ 9.0+,$(CC_SHORTVER))))
313 315
 	# dependencies can be generated on-the-fly while compiling *.c
314 316
 	CC_MKDEP_OPTS=-MMD -MP