VirtualBox

Changeset 352 in kBuild


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

Fixed not_parallel assertion in notice_finished_file.

Location:
trunk/src/gmake
Files:
4 edited

Legend:

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

    r287 r352  
    385385    {
    386386      /* If there are no commands, assume everything worked.  */
     387      file->command_flags |= COMMANDS_NO_COMMANDS;
    387388      set_command_state (file, cs_running);
    388389      file->update_status = 0;
  • trunk/src/gmake/commands.h

    r287 r352  
    3636#define COMMANDS_SILENT         2 /* Silent: @.  */
    3737#define COMMANDS_NOERROR        4 /* No errors: -.  */
    38 #define COMMANDS_NOTPARALLEL    32 /* kmk: the commands must be executed alone. */
    39 #define COMMANDS_BUILTIN        64 /* kmk: builtin command. */
     38#define COMMANDS_NOTPARALLEL   32 /* kmk: the commands must be executed alone. */
     39#define COMMANDS_BUILTIN       64 /* kmk: builtin command. */
     40#define COMMANDS_NO_COMMANDS  128 /* kmk: No commands. */
    4041
    4142extern void execute_file_commands PARAMS ((struct file *file));
  • trunk/src/gmake/job.c

    r287 r352  
    14931493  if (c->file->command_flags & COMMANDS_NOTPARALLEL)
    14941494    {
     1495      DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s')\n"), not_parallel, not_parallel + 1, c->file, c->file->name));
    14951496      assert(not_parallel == 0);
    1496       DB (DB_KMK, (_("not_parallel %d -> %d (file=%p `%s')\n"), not_parallel, not_parallel + 1, c->file, c->file->name));
    14971497      ++not_parallel;
    14981498    }
  • 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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette