Ignore:
Timestamp:
Dec 12, 2005, 4:07:31 AM (20 years ago)
Author:
bird
Message:

Fixed not_parallel assertion in notice_finished_file.

File:
1 edited

Legend:

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

    r287 r352  
    795795  int ran = file->command_state == cs_running;
    796796  int touched = 0;
    797 DB (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));
     797  DB (DB_JOBS, (_("notice_finished_file - entering: file=%p `%s' update_status=%d command_state=%d\n"),
     798                  file, file->name, file->update_status, file->command_state));
    798799  file->command_state = cs_finished;
    799800  file->updated = 1;
    800  
     801
    801802  /* update not_parallel if the file was flagged for that. */
    802   if (ran && (file->command_flags & COMMANDS_NOTPARALLEL))
    803     {
    804       assert(not_parallel == 1);
    805       DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s')\n"), not_parallel, not_parallel - 1, file, file->name));
     803  if (ran && (file->command_flags & (COMMANDS_NOTPARALLEL | COMMANDS_NO_COMMANDS))
     804      == COMMANDS_NOTPARALLEL)
     805    {
     806      DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s')\n"), not_parallel,
     807                   not_parallel - 1, file, file->name));
     808      assert(not_parallel >= 1);
    806809      --not_parallel;
    807810    }
Note: See TracChangeset for help on using the changeset viewer.