Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

CLion: Jom (parallel builds) and clcache (fast partial builds, faster than VS2017)

nyanpasu64 edited this page Jun 6, 2018 · 3 revisions
  • CLion Jom (parallel builds):
    • Settings, Build.../Toolchains, Make = path/to/jom.exe CLion Jom

clcache may cause invalid builds. https://github.com/frerich/clcache/issues/315

  • CLion clcache (lightning-fast partial builds):
    • Settings, Build.../Toolchains
    • C Compiler = path/to/clcache.exe
    • C++ Compiler = path/to/clcache.exe
  • To enable clcache server (otherwise uselessly slow):
    • Settings, Build.../CMake. For each of Debug/Release/etc, click Environment [...] button.
    • CLCACHE_SERVER=1 and CLCACHE_HARDLINK=1 (skip CLCACHE_HARDLINK if j0CC is cloned to different partition from your %userprofile% homedir).
    • Before building, execute python-dir\Scripts\clcache-server.exe.
  • OUTDATED SCREENSHOT (easier to set compiler on Toolchains tab, instead of per-profile variables[1]): CLion clcache

Regular clcache may enter an infinite loop. I've patched it for myself (not in repo).

[1]:

  • CC=path/to/clcache.exe
  • CXX=path/to/clcache.exe