Revision c64250b8
Von admin vor mehr als 4 Jahren hinzugefügt
tools/gwenbuild/buildctx/buildctx_run.c | ||
---|---|---|
|
||
int GWB_BuildCtx_Run(GWB_BUILD_CONTEXT *bctx, int maxConcurrentJobs, int usePrepareCommands, const char *builderName)
|
||
{
|
||
int rv;
|
||
int waitingJobs;
|
||
int runningJobs;
|
||
|
||
GWB_BuildCtx_SetupDependencies(bctx);
|
||
_setupCommands(bctx, usePrepareCommands);
|
||
_createCommandQueues(bctx);
|
||
GWB_BuildCtx_FillWaitingQueue(bctx, builderName);
|
||
rv=GWB_BuildCtx_FillWaitingQueue(bctx, builderName);
|
||
if (rv<0) {
|
||
DBG_INFO(NULL, "here (%d)", rv);
|
||
return rv;
|
||
}
|
||
|
||
if (bctx->waitingQueue==NULL) {
|
||
if (GWB_BuildCmd_List2_GetSize(bctx->waitingQueue)==0) {
|
||
fprintf(stdout, "Nothing to do.\n");
|
||
return 0;
|
||
}
|
Auch abrufbar als: Unified diff
gwenbuild: Use existing build command list instead of creating an returning new ones.
Also allow to differentiate between error adding dependencies and simply
empty dependency list (e.g. when requesting to build a file which is a
non-generated source file).