Skip to content

Commit 81d31fb

Browse files
committed
more prints
1 parent 2f704aa commit 81d31fb

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

builder/actions/install.py

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def export_compiler(compiler, env):
102102

103103
if not env.shell.getenv('CC'):
104104
cc_path = toolchain.compiler_path()
105+
print("DEBUG_CLANG: print cc_path {}".format(cc_path))
105106
if cc_path:
106107
env.shell.setenv('CC', cc_path)
107108
else:

builder/core/toolchain.py

+4
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,16 @@ def _find_compiler_tool(name, versions):
4242
if path:
4343
version = _compiler_version(path)[1]
4444
if version in versions:
45+
print("DEBUG_CLANG: find compiler path return1")
4546
return path, version
4647
for version in versions:
4748
for pattern in ('{name}-{version}', '{name}-{version}.0'):
4849
exe = pattern.format(name=name, version=version)
4950
path = util.where(exe, resolve_symlinks=False)
5051
if path:
52+
print("DEBUG_CLANG: find compiler path return2")
5153
return path, version
54+
print("DEBUG_CLANG: find compiler path return3")
5255
return None, None
5356

5457

@@ -237,6 +240,7 @@ def find_compiler(compiler, version=None):
237240
if current_os() == "macos":
238241
return Toolchain.find_apple_llvm_compiler(compiler, version)
239242
else:
243+
print("DEBUG_CLANG: try find_compiler() in clang")
240244
return Toolchain.find_llvm_tool(compiler, version)
241245
elif compiler == 'appleclang':
242246
return Toolchain.find_apple_llvm_compiler('clang', version)

0 commit comments

Comments
 (0)