QtCreator + Clang (mingw) + Ninja?

This is an old article from 2016. I was a kid. I learned a lot since then, so please do think twice when taking advice from me as a kid.

  1. Install mingw-clang like this: http://blog.johannesmp.com/2015/09/01/installing-clang-on-windows-pt3/

  2. Install QtCreator 4.0.0

  3. Download ninja binary and throw it into mingw32/bin

  4. Start QtCreator and add a new compiler with “Compiler path” “C:msys64mingw32binclang.exe”

  5. Add a new Kit in QtCreator: Select just created compiler, select CMake Generator “CodeBlocks - Ninja”. Possibly set “CMake configuration to

CMAKE_CXX_COMPILER:STRING=clang++
CMAKE_C_COMPILER:STRING=clang
CMAKE_MAKE_EXECUTABLE:STRING=ninja

This post was imported from tumblr