← Back to team overview

kicad-developers team mailing list archive

Re: Any pointers to speed up the build

 


Le 11/07/2021 à 14:59, Andrew Lutsenko a écrit :
Few things that can help
1. Disable qa tests build if you don't need them
2. Disable python scripting if you don't need it
3. Use MSVC if you are on windows. Their linker is a LOT faster than gcc.
4. Use more powerful hardware. Those steps take <10s on my pc but it's a 12 core 3900x.

Best,
Andrew

On Sun, Jul 11, 2021 at 5:35 AM Pradeepa Senanayake <pradeepa.kck@xxxxxxxxx <mailto:pradeepa.kck@xxxxxxxxx>> wrote:

    Hello Team,

    I don't know whether this is normal, but even for a small change,
    the application takes ~ 15 mins to build.

    $ time make -j 5 install
    ...
    ...
    real    14m51.815s
    user    0m8.017s
    sys     0m15.641s

    The most time is spent in the linking process. (Following steps)

    [ 98%] Linking CXX shared module _pcbnew.kiface
    [ 98%] Built target pcbnew_kiface
    [ 98%] Creating python's pcbnew native module _pcbnew.pyd for
    command line use.
    [ 98%] Built target pcbnew
    [ 98%] Linking CXX executable qa_pcbnew_tools.exe
    [ 98%] Linking CXX executable qa_pcbnew.exe
    [ 98%] Built target pcbnew_python_module
    [ 98%] Built target qa_pcbnew_tools
    [100%] Built target qa_pcbnew

    Is there a way to speed this up?

    Thanks!
    Best Regards,
    Pradeepa Senanayake.
    -


On Windows, if you are using msys2, use Release mode when you do not actually need the Debug build.

The Debug build creates slower binaries, and more annoying *very large* files.

use -DBUILD_SMALL_DEBUG_FILES=ON option on msys2 to build Debug versions.

On my computer (not very fast), link process takes one minute in Release mode, and no QA build.

Jean-Pierre CHARRAS


References