为什么链接需要这么长时间? Godot + Scons [关闭]

问题描述 投票:0回答:0

我正在使用 Scons 构建一个中型 C++ 项目 (Godot)。在我的机器上,有 16MB 内存,构建后(所有目标文件都存在),我更改一个文件,目标文件很快重新编译,但是重新链接所有东西需要大约 5 分钟,并且消耗大量内存和 CPU .

**CPU** **Memory**
40.0  45.1 ld
[100%] Linking Program bin/godot.linuxbsd.editor.dev.x86_64 ...
[100%] scons: done building targets.
[Time elapsed: 00:04:49.006]

这里发生了什么,有没有办法加快链接过程?

c++ linker ld godot scons
© www.soinside.com 2019 - 2024. All rights reserved.