Qt Creator and ccache on Mac
-
Hi forum
How to properly use ccache in combination with a recent version of Qt Creator on Mac?
My setup:
- Mac OS 10.9.4
- CMake project (2.8.12.1)
- clang: LLVM version 5.1 (clang-503.0.40)
- gcc: --> same as clang
- Qt Creator: 3.1.2 (based on Qt 5.3.1), official release, rev a791e851a7
- ccache: version 3.1.9
Choosing a ccache-compiler for my kit breaks the debugger functionality in that sense that it doesn't stop at any break-point. Or is there a general issue with ccache in combination with clang? I recall that things were working for me on Linux some time ago (don't recall the details anymore).
Also, I saw this thread, and I wondered if there is any progress or easy work-around for the issue.
https://bugreports.qt-project.org/browse/QTBUG-31034I was testing with the following minimal example.
@CMakeLists.txt
cmake_minimum_required(VERSION 2.8.11)
set(SOURCES
main.cpp)add_executable(minimal_test ${SOURCES})
@@
// main.cpp
#include <iostream>int main(int argc, char** argv)
{
std::cout << "Hello World!" << std::endl;
return 0;
}
@Thanks in advance!
-
Can't help you with that (dunno macs), but i just wanted to strongly advise you against using 3.1.2 as it has various annoying issues which have been fixed in 3.2 RC1, here: http://blog.qt.digia.com/blog/2014/08/05/qt-creator-3-2-rc1-released/
-
Apparently, the issue was addressed in a recent release of ccache:
https://ccache.samba.org/releasenotes.html#_ccache_3_1_10
(Haven't tested it yet)