From 3e3e3911003df84792917eddc692437f45c342b3 Mon Sep 17 00:00:00 2001 From: Harald Klimach Date: Thu, 8 Mar 2012 11:34:37 +0100 Subject: [PATCH] Do a multiline search for the NAG compiler version string --- waflib/extras/fc_nag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/extras/fc_nag.py b/waflib/extras/fc_nag.py index 6fdb9ad8..41d82f06 100644 --- a/waflib/extras/fc_nag.py +++ b/waflib/extras/fc_nag.py @@ -36,7 +36,7 @@ def nag_modifier_platform(conf): def get_nag_version(conf, fc): """Get the NAG compiler version""" - version_re = re.compile(r"NAG Fortran Compiler *Release *(?P\d*)\.(?P\d*)", re.I).search + version_re = re.compile(r"^NAG Fortran Compiler *Release *(?P\d*)\.(?P\d*)", re.M).search cmd = fc + ['-v'] out, err = fc_config.getoutput(conf,cmd,stdin=False)