VirtualBox

Changeset 1020 in kBuild for trunk/src


Ignore:
Timestamp:
Jun 4, 2007 12:05:14 AM (18 years ago)
Author:
bird
Message:

no special casing for multi-maybe stuff. (it seems kind of unnecessary now)

File:
1 edited

Legend:

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

    r1019 r1020  
    382382  struct file *dep_file;
    383383
    384   /* Always work on the primary multi target file, unless of course, if it's
    385      a multi-maybe file with its order only dependency on the primary file. */
     384  /* Always work on the primary multi target file. */
    386385  if (file->multi_head != NULL && file->multi_head != file)
    387386    {
    388       if (!file->multi_maybe)
    389         {
    390           DBS (DB_VERBOSE, (_("Considering target file `%s' -> switching to multi head `%s'.\n"),
    391                             file->name, file->multi_head->name));
    392           file = file->multi_head;
    393         }
    394       else
    395         DBF (DB_VERBOSE, _("Considering target file `%s'. (multi-maybe)\n"));
     387      DBS (DB_VERBOSE, (_("Considering target file `%s' -> switching to multi head `%s'.\n"),
     388                          file->name, file->multi_head->name));
     389      file = file->multi_head;
    396390      /* XXX: optimize dependencies. */
    397391    }
     
    493487
    494488#ifdef CONFIG_WITH_EXPLICIT_MULTITARGET
    495   for (dep_file = file; dep_file;
    496        dep_file = file == file->multi_head ? dep_file->multi_next : NULL)
     489  for (dep_file = file; dep_file; dep_file = dep_file->multi_next)
    497490    {
    498491      lastd = 0;
     
    609602    {
    610603#ifdef CONFIG_WITH_EXPLICIT_MULTITARGET
    611       for (dep_file = file; dep_file;
    612            dep_file = file == file->multi_head ? dep_file->multi_next : NULL)
     604      for (dep_file = file; dep_file; dep_file = dep_file->multi_next)
    613605        for (d = dep_file->deps; d != 0; d = d->next)
    614606#else
     
    716708  deps_changed = 0;
    717709#ifdef CONFIG_WITH_EXPLICIT_MULTITARGET
    718   for (dep_file = file; dep_file;
    719        dep_file = file == file->multi_head ? dep_file->multi_next : NULL)
     710  for (dep_file = file; dep_file; dep_file = dep_file->multi_next)
    720711#endif
    721712    for (d = file->deps; d != 0; d = d->next)
     
    782773  depth--;
    783774
    784 #ifdef CONFIG_WITH_EXPLICIT_MULTITARGET
    785   /* maybe-update targets in a multi target should have been remade
    786      by now, so return before we remake it again. */
    787   if (file->multi_maybe)
    788     {
    789       assert (file->multi_head->updated);
    790       assert (file->update_status <= 0);
    791       DBF (DB_VERBOSE, _("Finished maybe-update file `%s'.\n"));
    792       return 0;
    793     }
    794 #endif
    795 
    796775  if (file->double_colon && file->deps == 0)
    797776    {
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