toolchain: adjust version check to allow for single numbers
authorNorbert Lange <nolange79@gmail.com>
Wed, 10 Jun 2020 23:53:12 +0000 (01:53 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 14 Jun 2020 20:11:06 +0000 (22:11 +0200)
commit5303e72a80e44c265473706a2d4f3acb5010814f
tree5e91940a815c11a50caae77882432ef53b57a12c
parentb509bddbc63d958de4bfd6cb80205268b42efca4
toolchain: adjust version check to allow for single numbers

A gcc compiler, which was configured with
--with-gcc-major-version-only, will only return a single
number. (debian does this for example).

A simple modification allows the check to work with both
single numbers (eg. '9') and full versions (eg. '9.2.1').

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
toolchain/helpers.mk