Makefiles: do not force using GCC <= 6
authorJan Vrany <jan.vrany@fit.cvut.cz>
Fri, 10 Jan 2020 09:37:03 +0000
changeset 285 0cfb07f8d038
parent 284 2cc4ad929665
child 286 c08455e14746
Makefiles: do not force using GCC <= 6 The code has been updated to work with GCC up to 9.2.1 so there's no longer a need to use GCC 6.x or lower. Yay!
makelib/config-linux-gnu.make
--- a/makelib/config-linux-gnu.make	Sun Dec 29 08:00:02 2019 +0000
+++ b/makelib/config-linux-gnu.make	Fri Jan 10 09:37:03 2020 +0000
@@ -12,22 +12,3 @@
 
 MAKEFILE_EXTENSION=linux-elf
 SETUP_RULE=setup_linux
-
-# We need to use at most GCC 6.x, some code may fail to compile
-# with GCC 7 due to -Werror (`send.c` for instance). We won't fix
-# that for Smalltalk/X 6.x.x, will be fixed only for Smalltalk/X 8.1.x 
-# series. 
-# 
-# Note, that we have to use the trick with `ifeq $(origin CC),...` rather than
-# `ifdef` since CC is one of the GNU make implicit variables. series
-#
-# See https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html
-ifeq ($(origin CC),default)
-  ifneq ($(shell which gcc-6),)
-    CC = gcc-6
-  else ifneq ($(shell which gcc-5),)
-    CC = gcc-5
-  else ifneq ($(shell which gcc-4),)
-    CC = gcc-4
-  endif
-endif