VirtualBox

Changeset 2027 in kBuild for trunk


Ignore:
Timestamp:
Nov 3, 2008 1:49:31 AM (16 years ago)
Author:
bird
Message:

kmk/commands.c: delete multi target siblings not only the head.

File:
1 edited

Legend:

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

    r2024 r2027  
    662662  if (file->precious || file->phony)
    663663    return;
     664#ifdef CONFIG_WITH_EXPLICIT_MULTITARGET
     665  assert (!file->multi_maybe);
     666#endif
    664667
    665668#ifndef NO_ARCHIVES
     
    716719    delete_target (d->file, child->file->name);
    717720
     721#ifdef CONFIG_WITH_EXPLICIT_MULTITARGET
     722  /* Also remove any multi target siblings, except for the 'maybe' ones (we
     723     handle that here) and precious ones (delete_target deals with that).
     724     Note that CHILD is always the multi target head (see remake.c).  */
     725  if (child->file == child->file->multi_head)
     726    {
     727      struct file *f2;
     728      for (f2 = child->file->multi_next; f2; f2 = f2->multi_next)
     729        if (!f2->multi_maybe)
     730          delete_target (f2, child->file->name);
     731    }
     732#endif
     733
    718734  child->deleted = 1;
    719735}
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