Thank you guys for your continued support!
duane I didn't try Clang because of this: "It's still recommended to use GCC for production builds as they can be compiled using link-time optimization, making the resulting binaries smaller and faster." But I will try everything now, so adding to the list.
Same environment, I don't run them at the same time.
Each run uses two processes, 3.5% memory usage each for repo, 4.7% for built, very similar for 4G RAM.
Command to run is just a path to the exec file, for both.
Also, forgot to mention, I've built the Godot the same way on Fedora current version and it works fine, but that's also much more powerful machine so I might just not see the difference... but it takes 0.2% of one core here, both built and from repo, so I doubt it, it has to be software. Now I'm trying to build the same thing on Lubuntu LTS and these problems showed up. I've just installed Fedora on my old laptop, it also works fine there...
Build log:
The config.py
file with all the build arguments:
MagickPanda I don't think I know how to do it... I was using profiler in Qt Creator once, I know what that is, but I don't know about SCons.
Pixophir it's 3.5.1-stable from the github tag, but even worse than with profiling, "artefacts with debug symbols" don't tell me much, and it's so hard to google anything about SCons...