RREE / build-avr-ada-toolchain

Scripts for Building the AVR-Ada Toolchain
MIT License
7 stars 6 forks source link

GCC version check doesn't work with gcc-10 #7

Open krzysztof9nowak opened 4 years ago

krzysztof9nowak commented 4 years ago

The script thinks gcc version "10.2.0" < "4.7.0" because string comparison in bash checks their lexicographical order. line 148 of build-avr-ada.sh:

if [[ "$GCC_VERSION" < "4.7.0" ]] ; then  # string comparison (?)