diff --git a/tools/toolchains/arm.py b/tools/toolchains/arm.py index 7d745b438d..12e400552b 100644 --- a/tools/toolchains/arm.py +++ b/tools/toolchains/arm.py @@ -41,7 +41,7 @@ class ARM(mbedToolchain): SUPPORTED_CORES = ["Cortex-M0", "Cortex-M0+", "Cortex-M3", "Cortex-M4", "Cortex-M4F", "Cortex-M7", "Cortex-M7F", "Cortex-M7FD", "Cortex-A9"] ARMCC_RANGE = (LooseVersion("5.06"), LooseVersion("5.07")) - ARMCC_VERSION_RE = re.compile("Product: ARM Compiler (\d+.\d+)") + ARMCC_VERSION_RE = re.compile("Product: ARM Compiler (\d+\.\d+)") @staticmethod def check_executable(): diff --git a/tools/toolchains/iar.py b/tools/toolchains/iar.py index 4f066cd0f7..02a38f21a1 100644 --- a/tools/toolchains/iar.py +++ b/tools/toolchains/iar.py @@ -30,7 +30,7 @@ class IAR(mbedToolchain): DIAGNOSTIC_PATTERN = re.compile('"(?P[^"]+)",(?P[\d]+)\s+(?PWarning|Error|Fatal error)(?P.+)') INDEX_PATTERN = re.compile('(?P\s*)\^') - IAR_VERSION_RE = re.compile("IAR ANSI C/C\+\+ Compiler V([0-9]+.[0-9]+)") + IAR_VERSION_RE = re.compile("IAR ANSI C/C\+\+ Compiler V(\d+\.\d+)") IAR_VERSION = LooseVersion("7.80") @staticmethod