build-remote: store maxBuildJobs before forcing it to 1
This commit is contained in:
parent
3050005211
commit
631ba6442a
|
@ -72,6 +72,7 @@ static int main_build_remote(int argc, char * * argv)
|
||||||
settings.set(name, value);
|
settings.set(name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto maxBuildJobs = settings.maxBuildJobs;
|
||||||
settings.maxBuildJobs.set("1"); // hack to make tests with local?root= work
|
settings.maxBuildJobs.set("1"); // hack to make tests with local?root= work
|
||||||
|
|
||||||
initPlugins();
|
initPlugins();
|
||||||
|
@ -114,7 +115,7 @@ static int main_build_remote(int argc, char * * argv)
|
||||||
|
|
||||||
/* It would be possible to build locally after some builds clear out,
|
/* It would be possible to build locally after some builds clear out,
|
||||||
so don't show the warning now: */
|
so don't show the warning now: */
|
||||||
bool couldBuildLocally = settings.maxBuildJobs > 0
|
bool couldBuildLocally = maxBuildJobs > 0
|
||||||
&& ( neededSystem == settings.thisSystem
|
&& ( neededSystem == settings.thisSystem
|
||||||
|| settings.extraPlatforms.get().count(neededSystem) > 0)
|
|| settings.extraPlatforms.get().count(neededSystem) > 0)
|
||||||
&& allSupportedLocally(*store, requiredFeatures);
|
&& allSupportedLocally(*store, requiredFeatures);
|
||||||
|
|
Loading…
Reference in a new issue