From 5c3a40d1159bb021c747cfc5f0f5928ae0b35bb4 Mon Sep 17 00:00:00 2001 From: Harald Klimach Date: Wed, 23 Dec 2015 15:28:43 +0100 Subject: [PATCH] Loosened and simplified the regex for the version string of ifort as suggested by apthorpe --- waflib/Tools/ifort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/Tools/ifort.py b/waflib/Tools/ifort.py index 8d00a013..2f0a535b 100644 --- a/waflib/Tools/ifort.py +++ b/waflib/Tools/ifort.py @@ -37,7 +37,7 @@ def ifort_modifier_platform(conf): def get_ifort_version(conf, fc): """get the compiler version""" - version_re = re.compile(r"Intel[\sa-zA-Z()0-9,-]*Version\s*(?P\d*)\.(?P\d*)",re.I).search + version_re = re.compile(r"\bIntel\b.*\bVersion\s*(?P\d*)\.(?P\d*)",re.I).search if Utils.is_win32: cmd = fc else: