Linking using the GCC toolset takes minutes compared to Codelite IDE
devshgraphicsprogramming opened this issue · 2 comments
Brief Issue Summary
Linking any target (library, executable) takes a vastly disproportional amount of time compared to other IDEs (Codelite) which have had their workspace/project files generated by CMake.
The project (and its targets) that I'm building come from this repository
https://github.com/buildaworldnet/IrrlichtBAW
Expected:
Linking (especially of single source executables) takes a similar amount of time as in other IDEs.
Apparent Behavior:
Compiling takes a really short time and seems to happen in parallel (multiple cc1plus
processes running).
However the linking phase my system monitor only reports a single cc1plus
and g++-7
processes running with 12% and 0% CPU usage respectively.
This is despite my CMake containing the -fuse-ld=gold
(the new parallel linker) option in the linker options.
CMake Tools Log
The log seems to hang for a very long while on the last .o
object file built.
Platform and Versions
Operating System: Ubuntu 18.04
CMake Version: 3.15.3
VSCode Version: 1.33.0
CMake Tools Extension Version: 1.1.3
Compiler/Toolchain: GCC 7.3.0
This issue is now marked as 'stale-old' due to there being no activity on it for the past 720 days. Unless the 'stale-old' label is removed or the issue is commented on, this will be remain open for at least 14 days and then it may be closed. If you would like to make this issue exempt from getting stale, please add the 'stale-exempt' label.
This issue is now closed due to there being no activity on it for the past 14 days since being marked as 'stale-old'.