How to compile on multiple cores using mingw inside QTCreator

后端 未结 7 1209
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 22:54

I have a quad-core i7 CPU on my windows desktop. I am trying to get mingw32-make to compile using as many core as possible. I have added -j8 into the \"Make Arguments\" fiel

相关标签:
7条回答
  • 2020-12-29 23:34

    Here's what I did.

    In the Tools -> Options menu in Qt Creator, under the "Build and Run" section there's an option that says "Use jom instead of nmake". I checked that box, but nothing changed. So instead, I went to the project's build settings and under the build steps category there is a "Make" item. Expand the details on that and you'll find a "Override mingw32-make.exe:" item. I pasted "C:\QtSDK\QtCreator\bin\jom.exe" in there, and suddenly I was building with multiple cores.

    Worked for me on Qt Creator 2.4.1. Give it a try.

    0 讨论(0)
提交回复
热议问题