Ignore:
Timestamp:
Feb 8, 2005, 10:19:09 AM (20 years ago)
Author:
bird
Message:

2nd try on .NOTPARALLEL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/remake.c

    r154 r218  
    726726  int ran = file->command_state == cs_running;
    727727  int touched = 0;
    728 
     728DB (DB_JOBS, (_("notice_finished_file - entering: file=%p `%s' update_status=%d command_state=%d\n"), file, file->name, file->update_status, file->command_state));
    729729  file->command_state = cs_finished;
    730730  file->updated = 1;
     731 
     732  /* update not_parallel if the file was flagged for that. */
     733  if (ran && (file->command_flags & COMMANDS_NOTPARALLEL))
     734    {
     735      assert(not_parallel == 1);
     736      DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s')\n"), not_parallel, not_parallel - 1, file, file->name));
     737      --not_parallel;
     738    }
    731739
    732740  if (touch_flag
     
    826834       So mark it now as "succeeded".  */
    827835    file->update_status = 0;
     836
     837DB (DB_JOBS, (_("notice_finished_file - leaving: file=%p `%s' update_status=%d command_state=%d\n"), file, file->name, file->update_status, file->command_state));
    828838}
    829839
Note: See TracChangeset for help on using the changeset viewer.