diff options
author | Simon Warta <[email protected]> | 2017-09-07 23:33:16 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-09-07 23:33:16 +0200 |
commit | eb0232cc7db8849b1c4f2f07c9e3516c8b5c4f0c (patch) | |
tree | ffcb2722fbbe5b71e089abb7bb675b8b2c1ee09f | |
parent | 51f8edb0cb83c75bdf3818d7e88cac87502b4d31 (diff) |
Rename variable xcode_version_to_clang -> appleclang_to_clang_version
-rwxr-xr-x | configure.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.py b/configure.py index fea687a87..6b5b700ed 100755 --- a/configure.py +++ b/configure.py @@ -2704,7 +2704,7 @@ class CompilerDetector(object): cc_version = "%d.%d" % (major, minor) if cc_version is None and self._cc_name == 'clang' and self._os_name in ['darwin', 'ios']: - xcode_version_to_clang = { + appleclang_to_clang_version = { '703': '3.8', '800': '3.9', # 802 has no support for clang 4.0 flags -Og and -MJ, 900 has. @@ -2715,8 +2715,8 @@ class CompilerDetector(object): match = re.search(r'Apple LLVM version [0-9\.]+ \(clang-([0-9]+)\.', cc_output) if match: apple_clang_version = match.group(1) - if apple_clang_version in xcode_version_to_clang: - cc_version = xcode_version_to_clang[apple_clang_version] + if apple_clang_version in appleclang_to_clang_version: + cc_version = appleclang_to_clang_version[apple_clang_version] logging.info('Mapping Apple Clang version %s to LLVM version %s' % ( apple_clang_version, cc_version)) else: |