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.
2 parents bdd68da + c43d082 commit 46ffd1fCopy full SHA for 46ffd1f
refresh.template.py
@@ -798,6 +798,15 @@ def _all_platform_patch(compile_args: typing.List[str]):
798
new_compile_args.append(arg)
799
compile_args = new_compile_args
800
801
+ # Discover compilers that are actually symlinks to ccache--and replace them with the underlying compiler
802
+ if os.path.islink(compile_args[0]):
803
+ compiler_path = os.readlink(compile_args[0])
804
+ if os.path.basename(compiler_path) == "ccache":
805
+ compiler = os.path.basename(compile_args[0])
806
+ real_compiler_path = shutil.which(compiler)
807
+ if real_compiler_path:
808
+ compile_args[0] = real_compiler_path
809
+
810
# Any other general fixes would go here...
811
812
return compile_args
0 commit comments