We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f791e2 commit c43d082Copy full SHA for c43d082
refresh.template.py
@@ -761,12 +761,9 @@ def _all_platform_patch(compile_args: typing.List[str]):
761
compile_args = new_compile_args
762
763
# Discover compilers that are actually symlinks to ccache--and replace them with the underlying compiler
764
- try:
+ if os.path.islink(compile_args[0]):
765
compiler_path = os.readlink(compile_args[0])
766
- except OSError:
767
- pass
768
- else:
769
- if compiler_path.endswith("ccache"):
+ if os.path.basename(compiler_path) == "ccache":
770
compiler = os.path.basename(compile_args[0])
771
real_compiler_path = shutil.which(compiler)
772
if real_compiler_path:
0 commit comments