Skip to content

Commit

Permalink
setup compiler print
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed May 30, 2024
1 parent 2018988 commit 2f704aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder/core/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def _compiler_version(cc):
if current_os() != 'windows':
result = util.run_command(cc, '--version', quiet=True)
lines = result.output.split('\n')

print("DEBUG_CLANG: compiler version {}".format(lines))
for text in lines:
# Apple clang
m = re.match(r'Apple (LLVM|clang) version (\d+)', text)
Expand All @@ -38,6 +38,7 @@ def _compiler_version(cc):
def _find_compiler_tool(name, versions):
# look for the default tool, and see if the version is in the search set
path = util.where(name, resolve_symlinks=False)
print("DEBUG_CLANG: find compiler path {}".format(path))
if path:
version = _compiler_version(path)[1]
if version in versions:
Expand Down

0 comments on commit 2f704aa

Please sign in to comment.