mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #10618 from kjbracey-arm/gcc8
Tools: check for GCC 9, rather than 6pull/11945/head
commit
27012ff8e7
|
@ -155,23 +155,31 @@ def test_gcc_version_check(_run_cmd):
|
|||
toolchain = TOOLCHAIN_CLASSES["GCC_ARM"](
|
||||
TARGET_MAP["K64F"], notify=notifier)
|
||||
toolchain.version_check()
|
||||
assert notifier.messages == []
|
||||
assert len(notifier.messages) == 1
|
||||
_run_cmd.return_value = ("""
|
||||
arm-none-eabi-gcc (Arch Repository) 8.1.0
|
||||
Copyright (C) 2018 Free Software Foundation, Inc.
|
||||
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
|
||||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
""", "", 0)
|
||||
toolchain.version_check()
|
||||
assert len(notifier.messages) == 1
|
||||
_run_cmd.return_value = ("""
|
||||
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 10-2020-q4-major) 10.2.1 20201025 (release) [ARM/arm-10-branch revision 377599]
|
||||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
""", "", 0)
|
||||
toolchain.version_check()
|
||||
assert len(notifier.messages) == 2
|
||||
_run_cmd.return_value = ("""
|
||||
arm-none-eabi-gcc (Arch Repository)
|
||||
Copyright (C) 2018 Free Software Foundation, Inc.
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
""", "", 0)
|
||||
toolchain.version_check()
|
||||
assert len(notifier.messages) == 2
|
||||
assert len(notifier.messages) == 3
|
||||
|
||||
|
||||
@given(fixed_dictionaries({
|
||||
|
|
|
@ -32,7 +32,7 @@ class GCC(mbedToolchain):
|
|||
STD_LIB_NAME = "lib%s.a"
|
||||
DIAGNOSTIC_PATTERN = re.compile('((?P<file>[^:]+):(?P<line>\d+):)(?P<col>\d+):? (?P<severity>warning|[eE]rror|fatal error): (?P<message>.+)')
|
||||
|
||||
GCC_RANGE = (LooseVersion("6.0.0"), LooseVersion("7.0.0"))
|
||||
GCC_RANGE = (LooseVersion("9.0.0"), LooseVersion("10.0.0"))
|
||||
GCC_VERSION_RE = re.compile(b"\d+\.\d+\.\d+")
|
||||
|
||||
def __init__(self, target, notify=None, macros=None, build_profile=None,
|
||||
|
|
Loading…
Reference in New Issue