diff options
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.py b/configure.py index bf5151dee..fc9a0ba2b 100755 --- a/configure.py +++ b/configure.py @@ -2963,6 +2963,8 @@ def calculate_cc_min_version(options, ccinfo, source_paths): 'xlc': r'^ *XLC ([0-9]+) ([0-9]+)$', } + unknown_pattern = r'UNKNOWN 0 0' + if ccinfo.basename not in version_patterns: logging.info("No compiler version detection available for %s" % (ccinfo.basename)) return "0.0" @@ -2971,6 +2973,10 @@ def calculate_cc_min_version(options, ccinfo, source_paths): cc_output = run_compiler_preproc(options, ccinfo, detect_version_source, "0.0") + if re.search(unknown_pattern, cc_output) is not None: + logging.warning('Failed to get version for %s from macro check' % (ccinfo.basename)) + return "0.0" + match = re.search(version_patterns[ccinfo.basename], cc_output, flags=re.MULTILINE) if match is None: logging.warning("Tried to get %s version, but output '%s' does not match expected version format" % ( |