Skip to content

Commit

Permalink
Fix to the version comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Dec 6, 2020
1 parent ac63b94 commit 792b1b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sming/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ SMING_CXX_STD ?= c++17
endif
CXXFLAGS += -std=$(SMING_CXX_STD)

GCC_MIN_VERSION := "8.0"
GCC_VERSION_COMPATIBLE := $(shell expr "$(GCC_VERSION)" ">=" "$(GCC_MIN_VERSION)")
GCC_MIN_MAJOR_VERSION := 8
GCC_VERSION_COMPATIBLE := $(shell expr $$(echo $(GCC_VERSION) | cut -f1 -d.) \>= $(GCC_MIN_MAJOR_VERSION))

ifeq ($(GCC_VERSION_COMPATIBLE),0)
$(warning ***** Please, upgrade your GCC compiler to version $(GCC_MIN_VERSION) or newer *****)
$(warning ***** Please, upgrade your GCC compiler to version $(GCC_MIN_MAJOR_VERSION) or newer *****)
ifneq ($(GCC_UPGRADE_URL),)
$(info Instructions for upgrading your compiler can be found here: $(GCC_UPGRADE_URL))
endif
Expand Down

0 comments on commit 792b1b0

Please sign in to comment.