• ZyX's avatar
    cmake: Add `clint` target to build Makefile · 030c0588
    ZyX authored
    Allows linting only modified files and linting multiple files in
    parallel. In the current state is rather slow because errors.json is
    a 6 MiB file and needs to be reparsed each time.
    
    Results on my system (6-core):
    
        # In build dir, actually parallel
        make -j5 clint  241.24s user 8.39s system 334% cpu 1:14.74 total
        # In root, one process
        make -j5 clint  60.69s user 0.37s system 93% cpu 1:05.19 total
    
    In both cases download time included.
    
    That is not well for travis (though I would keep travis as-is because
    new variant will fail before checking all files), but already good
    enough for regular development: total times are nearly identical and
    this is the *full* build, further `make -C build clint` will check only
    modified files.
    030c0588
Name
Last commit
Last update
..
ConvertPo.cmake Loading commit data...
Download.cmake Loading commit data...
FindIconv.cmake Loading commit data...
FindJeMalloc.cmake Loading commit data...
FindLibIntl.cmake Loading commit data...
FindLibTermkey.cmake Loading commit data...
FindLibUV.cmake Loading commit data...
FindLibVterm.cmake Loading commit data...
FindLuaJit.cmake Loading commit data...
FindMsgpack.cmake Loading commit data...
FindUnibilium.cmake Loading commit data...
GenerateHelptags.cmake.in Loading commit data...
GetCompileFlags.cmake Loading commit data...
GetGitRevisionDescription.cmake Loading commit data...
GetGitRevisionDescription.cmake.in Loading commit data...
InstallHelpers.cmake Loading commit data...
LibFindMacros.cmake Loading commit data...
LuaHelpers.cmake Loading commit data...
PreventInTreeBuilds.cmake Loading commit data...
RunLint.cmake Loading commit data...
RunMsgfmt.cmake Loading commit data...
RunMsgmerge.cmake Loading commit data...
RunTests.cmake Loading commit data...
RunTestsLint.cmake Loading commit data...
RunXgettext.cmake Loading commit data...
WindowsDllCopy.cmake Loading commit data...
i386-linux-gnu.toolchain.cmake Loading commit data...
mingw32-w64-cross-travis.toolchain.cmake Loading commit data...