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 3dddf20 commit a8fb908Copy full SHA for a8fb908
refresh.template.py
@@ -760,6 +760,14 @@ def _all_platform_patch(compile_args: typing.List[str]):
760
new_compile_args.append(arg)
761
compile_args = new_compile_args
762
763
+ # replace ccache with the actual compiler
764
+ compiler_path = os.readlink(compile_args[0])
765
+ if compiler_path.endswith("ccache"):
766
+ compiler = os.path.basename(compile_args[0])
767
+ real_compiler_path = shutil.which(compiler)
768
+ if real_compiler_path:
769
+ compile_args[0] = real_compiler_path
770
+
771
# Any other general fixes would go here...
772
773
return compile_args
0 commit comments