diff options
author | Simon Warta <[email protected]> | 2017-09-02 09:53:18 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-09-02 09:53:18 +0200 |
commit | e881c1be5c26f562a793096d97b5ade3ec02eda1 (patch) | |
tree | ef59014db8e02a52ead44194f2cd74f426c82a5c /configure.py | |
parent | 5dd60b57b39541ae11febee03051bbdee255e3c6 (diff) |
Remove case cc_min_version == None in compatible_compiler
This does not happen anymore. cc_min_version is set to 0.0 in case of
auto-detection error
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/configure.py b/configure.py index 279797ce0..ebe3bfffc 100755 --- a/configure.py +++ b/configure.py @@ -870,14 +870,10 @@ class ModuleInfo(InfoObject): try: name, version = cc.split(":") if name == ccinfo.basename: - if cc_min_version: - min_cc_version = [int(v) for v in version.split('.')] - cur_cc_version = [int(v) for v in cc_min_version.split('.')] - # With lists of ints, this does what we want - return cur_cc_version >= min_cc_version - else: - # Compiler version unknown => module unsupported - return False + min_cc_version = [int(v) for v in version.split('.')] + cur_cc_version = [int(v) for v in cc_min_version.split('.')] + # With lists of ints, this does what we want + return cur_cc_version >= min_cc_version except ValueError: # No version part specified pass |