Is GCC 8 strictly needed? Or does it only need any version more recent than 8?
If it's the latter I don't think 11l.py should check if there's GCC 8 installed, especially when current version of GCC (stable) is 10.2
Probably it should check if AT LEAST GCC 8 is installed.
Right now it's doing
I'm not exactly good with GNU utilities so probably there's a better way to do it, but what about:
Basically it sorts with -V option the following 2 lines
and if after the sort the first line becomes $actual_gcc_version then it means that you don't have gcc 8 or later installed.
If it's the latter I don't think 11l.py should check if there's GCC 8 installed, especially when current version of GCC (stable) is 10.2
Probably it should check if AT LEAST GCC 8 is installed.
Right now it's doing
Python:
if os.system('g++-8 --version > /dev/null') != 0:
sys.exit(...)
os.system('g++-8 ...')
Python:
if os.system("g++ -dumpversion | awk '{print \"8\\n\"$1}' | sort -V | awk 'NR==1 && $1!=8{exit(1)}'") != 0:
sys.exit(...)
os.system('g++ ...')
Code:
8
$actual_gcc_version