mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-24 12:50:42 +00:00
[NFC][lit] Use proper semantic versioning names for variables
The variable named `minor` was actually pointing to the patch part of the version. While I was changing this I also made the check for Apple clang more robust by checking both patch and minor rather than just minor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9d9981028d
commit
e0e7476d4c
@ -225,9 +225,10 @@ class LLVMConfig(object):
|
||||
if re.match(r'^x86_64.*-apple', triple):
|
||||
version_regex = re.search(r'version ([0-9]+)\.([0-9]+).([0-9]+)', version_string)
|
||||
major_version_number = int(version_regex.group(1))
|
||||
minor_version_number = int(version_regex.group(3))
|
||||
minor_version_number = int(version_regex.group(2))
|
||||
patch_version_number = int(version_regex.group(3))
|
||||
if 'Apple LLVM' in version_string:
|
||||
return major_version_number >= 9 and minor_version_number > 0
|
||||
return major_version_number >= 9 and (minor_version_number > 0 or patch_version_number > 0)
|
||||
else:
|
||||
return major_version_number >= 5
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user