简体   繁体   English

在Windows上使用Qt Creator设置ccache

[英]Setting up ccache with Qt Creator on Windows

I'm trying to set up ccache in Qt Creator on Windows. 我正试图在Windows上的Qt Creator中设置ccache。

Unfortunatelly I couldn't find any good instruction. 不幸的是,我找不到任何好的指示。 How to make it working? 如何让它工作?

I have ccache installed with Cygwin. 我在Cygwin上安装了ccache。

edit: 编辑:

I've tried adding 我试过添加

QMAKE_CXX+="ccache g++"

as additional parameter in qmake build step. 作为qmake构建步骤中的附加参数。

But in compile output I still have "g++ -c -g -Wall ..." and I suppose it should be "ccache g++ ..." 但是在编译输出中,我仍然有“g ++ -c -g -Wall ...”,我想它应该是“ccache g ++ ...”

It should be: 它应该是:

"QMAKE_CXX=ccache g++"

And you might need to rerun qmake from the Build menu if QtCreator doesn't update automatically the makefile after you add that parameter. 如果QtCreator在添加该参数后没有自动更新makefile,则可能需要从Build菜单重新运行qmake。

QtCreator不了解ccache,此外,它正在寻找在Windows上将Cygwin二进制文件与本机二进制文件混合的麻烦。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM