Skip to content

Commit

Permalink
Updated minimum gcc version.
Browse files Browse the repository at this point in the history
████ ███  To request new features or in case this commit breaks something for you,
████ ███  please, create a new github issue with all possible information for me,
▓███▀█▄   but never share your API Keys!
▒▓██ ███
░▒▓█ ███  Signed-off-by: Carles Tubio <ctubio@users.noreply.github.com>
 _________________________________________
/ Hello, WORLD!                           \
|                                         |
\ pssst.. 1.00000000 BTC = 54183.41 EUR.  /
 -----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
  • Loading branch information
ctubio committed Sep 18, 2024
1 parent 10d2227 commit ab228d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ KBUILD := build-$(KHOST)
KHOME := $(if ${SYSTEMROOT},$(word 1,$(subst :, ,${SYSTEMROOT})):/,$(if \
$(findstring $(CHOST),$(lastword $(CARCH))),C:/,/var/lib/))K

ERR = *** K require g++ v12 or greater, but it was not found.
ERR = *** K require g++ v10 or greater, but it was not found.
HINT := consider a symlink at /usr/bin/$(CHOST)-g++ pointing to your g++ executable
STEP = $(shell tput setaf 2;tput setab 0)Building $(1)..$(shell tput sgr0)
SUDO = $(shell test -n "`command -v sudo`" && echo sudo)
Expand Down Expand Up @@ -127,7 +127,7 @@ clean check lib:
ifdef KALL
unset KALL $(foreach chost,$(CARCH),&& $(MAKE) $@ CHOST=$(chost))
else
$(if $(shell ver="`$(CHOST)-g++ -dumpversion | cut -d'-' -f1`" && test $${ver%%.*} -lt 12 && echo 1),$(warning $(ERR));$(error $(HINT)))
$(if $(shell ver="`$(CHOST)-g++ -dumpversion | cut -d'-' -f1`" && test $${ver%%.*} -lt 10 && echo 1),$(warning $(ERR));$(error $(HINT)))
@$(MAKE) -C src/lib $@ CHOST=$(CHOST) KHOST=$(KHOST) KHOME=$(KHOME)
endif

Expand Down Expand Up @@ -155,7 +155,7 @@ ifdef KALL
unset KALL $(foreach chost,$(CARCH),&& $(MAKE) $@ CHOST=$(chost))
else
$(info $(call STEP,$(KSRC) $@ $(CHOST)))
$(if $(shell ver="`$(CHOST)-g++ -dumpversion | cut -d'-' -f1`" && test $${ver%%.*} -lt 12 && echo 1),$(warning $(ERR));$(error $(HINT)))
$(if $(shell ver="`$(CHOST)-g++ -dumpversion | cut -d'-' -f1`" && test $${ver%%.*} -lt 10 && echo 1),$(warning $(ERR));$(error $(HINT)))
@$(CHOST)-g++ --version
@mkdir -p $(KBUILD)/bin
$(MAKE) $(if $(findstring darwin,$(CHOST)),Darwin,$(if $(findstring mingw32,$(CHOST)),Win32,$(shell uname -s))) CHOST=$(CHOST)
Expand Down

0 comments on commit ab228d6

Please sign in to comment.