Skip to content

Commit

Permalink
feat: set default build parameter
Browse files Browse the repository at this point in the history
Log:
Change-Id: Idb9a714fe6456aaa04142391ec2e0094da08a956
  • Loading branch information
deepin-mozart committed Jan 10, 2024
1 parent 27173fc commit fe89e33
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ void ConfigureProjPane::slotConfigure()
for (int i = 0; i < StepCount; i++) {
StepItem item;
item.type = static_cast<StepType>(i);
// default use max thread count
int coreCount = QThread::idealThreadCount();
if (coreCount > 1) {
item.arguments = QString("-j%1").arg(coreCount);
}
buildConfigure.steps.push_back(item);
}
// init environment
Expand Down

0 comments on commit fe89e33

Please sign in to comment.