Skip to content

Commit

Permalink
Move the call to Job_SetPrefix() to Job_Init() so that
Browse files Browse the repository at this point in the history
makefiles have had a chance to set .MAKE.JOB.PREFIX
  • Loading branch information
sgerraty committed Aug 4, 2013
1 parent cbd7fe2 commit 5d2437d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions contrib/bmake/job.c
Original file line number Diff line number Diff line change
Expand Up @@ -2214,6 +2214,7 @@ Job_SetPrefix(void)
void
Job_Init(void)
{
Job_SetPrefix();
/* Allocate space for all the job info */
job_table = bmake_malloc(maxJobs * sizeof *job_table);
memset(job_table, 0, maxJobs * sizeof *job_table);
Expand Down
1 change: 0 additions & 1 deletion contrib/bmake/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,6 @@ main(int argc, char **argv)
snprintf(pn, sizeof(pn), "%s[%d]", progname, makelevel);
progname = bmake_strdup(pn);
}
Job_SetPrefix();

#ifdef USE_META
meta_init();
Expand Down

0 comments on commit 5d2437d

Please sign in to comment.