使用 MinGW 工具链构建的 Qt Creator 速度较慢
Qt Creator build with the MinGW toolchain is slowish
在 Windows 上使用 MinGW 工具链在 Qt Creator 中构建时,构建速度较慢。一个小项目需要 21 秒。
任何修复?
修复是切换到 Microsoft 工具链(包括 MSVC 编译器和 CDB 调试器)。 Qt Creator 支持该工具链。这使我的构建时间从 21 秒减少到 11 秒。
此外,它使 "build when nothing has changed from the last build" 从 4 秒减少到 0 秒,这也是一个巨大的胜利。
注意:Qt Creator 选项中的 "Compilers" 选项卡列出了大量 MSVC 编译器,包括:
- 来自 Windows SDK 的编译器,适用于 3 种不同的架构
- "Microsoft Visual C++ Compiler 10.0" 用于 2 种不同的架构
- "Microsoft Visual C++ Compiler 14.0" 3 种不同的架构
我选的是"Microsoft Visual C++ Compiler 14.0 (x86)"
免责声明:在其他系统上的性能可能会有所不同。我是运行 32位Windows 7系统。
在 Windows 上使用 MinGW 工具链在 Qt Creator 中构建时,构建速度较慢。一个小项目需要 21 秒。
任何修复?
修复是切换到 Microsoft 工具链(包括 MSVC 编译器和 CDB 调试器)。 Qt Creator 支持该工具链。这使我的构建时间从 21 秒减少到 11 秒。
此外,它使 "build when nothing has changed from the last build" 从 4 秒减少到 0 秒,这也是一个巨大的胜利。
注意:Qt Creator 选项中的 "Compilers" 选项卡列出了大量 MSVC 编译器,包括:
- 来自 Windows SDK 的编译器,适用于 3 种不同的架构
- "Microsoft Visual C++ Compiler 10.0" 用于 2 种不同的架构
- "Microsoft Visual C++ Compiler 14.0" 3 种不同的架构
我选的是"Microsoft Visual C++ Compiler 14.0 (x86)"
免责声明:在其他系统上的性能可能会有所不同。我是运行 32位Windows 7系统。