Skip to content

Commit

Permalink
append versions
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Jun 3, 2024
1 parent a84c35c commit f859289
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions builder/core/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ def _find_compiler_tool(name, versions):

def _clang_versions(version=None):
versions = []
print('DEBUG_CLANG: _clang_versions {}'.format(version))
if version:
versions = [version]
versions.append(COMPILERS['clang']['versions']
[version]['releases'])
specific_versions = COMPILERS['clang']['versions'][str(version)]['releases']
if specific_versions:
versions.append(specific_versions)
else:
versions = [v for v in COMPILERS['clang']
['versions'].keys() if v != 'default']
Expand Down

0 comments on commit f859289

Please sign in to comment.