qmk doctor: arm-none-eabi-gcc version check

This commit is contained in:
Dimitris Mantzouranis 2023-06-07 00:46:32 +03:00
parent 19a070af9d
commit bb62c4ec6e

View File

@ -44,7 +44,13 @@ def _check_arm_gcc_version():
version_number = ESSENTIAL_BINARIES['arm-none-eabi-gcc']['output'].strip()
cli.log.info('Found arm-none-eabi-gcc version %s', version_number)
return CheckStatus.OK # Right now all known arm versions are ok
parsed_version = _parse_gcc_version(version_number)
if parsed_version['minor'] < 3:
if parsed_version['major'] <= 10:
cli.log.warning('{fg_yellow}We do not recommend arm-none-eabi-gcc older than 10.3.x. Upgrading to 10.3.x or higher is recommended.')
return CheckStatus.WARNING
return CheckStatus.OK # arm versions less than 10.3.x cause issues on sn32
def _check_avr_gcc_version():