Important: Please read the Qt Code of Conduct -

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 (
    • 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.

    I was testing with the following minimal example.


    cmake_minimum_required(VERSION 2.8.11)


    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:

  • Apparently, the issue was addressed in a recent release of ccache:
    (Haven't tested it yet)

Log in to reply