Skip to content

Commit

Permalink
Updated minimum gcc version to 10.
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 = 54211.34 EUR.  /
 -----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
  • Loading branch information
ctubio committed Sep 18, 2024
1 parent 10d2227 commit eeffe74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ K ?= K.sh
MAJOR = 0
MINOR = 7
PATCH = 0
BUILD = 0
BUILD = 1

OBLIGATORY = DISCLAIMER: This is strict non-violent software: \n$\
if you hurt other living creatures, please stop; \n$\
Expand Down 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 eeffe74

Please sign in to comment.