Anyone got idea why 'linking' may take 45 seconds on dedicated servers (Debian 7 and Debian 8.9)?
I tested it on 2 dedics (i4790K, 32-64GB ram, SSD NVME) and both compile files fast, but linking takes around 45 second.
After single line change in 1 file, it compiles file in 3 seconds and then I must wait 45 seconds for linker.
Tested it with g++ 4.9, 5, 6. Tested with "cotire" on/off.
At my home PC with Ubuntu 16.04 linking takes around 1 second.
After compilation on dedic, binary file size is 19MB, on home PC it's 9MB.
Any ideas what I can change in CMake project to make it link faster?
I tested it on 2 dedics (i4790K, 32-64GB ram, SSD NVME) and both compile files fast, but linking takes around 45 second.
After single line change in 1 file, it compiles file in 3 seconds and then I must wait 45 seconds for linker.
Tested it with g++ 4.9, 5, 6. Tested with "cotire" on/off.
At my home PC with Ubuntu 16.04 linking takes around 1 second.
After compilation on dedic, binary file size is 19MB, on home PC it's 9MB.
Any ideas what I can change in CMake project to make it link faster?