VirtualBox

Changeset 2742 in kBuild for trunk/src


Ignore:
Timestamp:
Dec 26, 2014 4:36:58 PM (10 years ago)
Author:
bird
Message:

remake.c: Some check_rename and rename related fixes to update_file_1.

File:
1 edited

Legend:

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

    r2666 r2742  
    465465  int running = 0;
    466466#ifdef CONFIG_WITH_EXPLICIT_MULTITARGET
    467   struct file *req_file = file;
    468   struct file *org_file = file;
     467  struct file *org_file;
     468  struct file *req_file;
    469469  struct file *f2, *f3;
    470470
    471   /* Always work on the primary multi target file. */
    472 
    473   if (file->multi_head != NULL && file->multi_head != file)
    474     {
    475       DBS (DB_VERBOSE, (_("Considering target file `%s' -> multi head `%s'.\n"),
    476                           file->name, file->multi_head->name));
    477       org_file = file = file->multi_head;
     471  /* Secondary target expansion leaves renamed files around, skip any rename
     472     files to simplify multi target handling. */
     473
     474  check_renamed(file);
     475
     476  /* Remember the request file and find the primary multi target file. Always
     477     work on the primary file in a multi target recipe.  */
     478
     479  req_file = file;
     480  org_file = file;
     481  if (file->multi_head != NULL)
     482    {
     483      if (file->multi_head == file)
     484        DBS (DB_VERBOSE, (_("Considering target file `%s'  (multi head).\n"), file->name));
     485      else
     486        {
     487          org_file = file = file->multi_head;
     488          DBS (DB_VERBOSE, (_("Considering target file `%s' -> multi head `%s'.\n"),
     489                              req_file->name, file->name));
     490          assert (file->multi_head == file);
     491        }
    478492    }
    479493  else
     
    541555#ifdef CONFIG_WITH_EXPLICIT_MULTITARGET
    542556  this_mtime = file_mtime (file);
     557  check_renamed (file);
    543558  f3 = file;
    544559  for (f2 = file->multi_next;
     
    564579        break;
    565580      }
    566   check_renamed (file);
     581  check_renamed (f3);
    567582  noexist = this_mtime == NONEXISTENT_MTIME;
    568583  if (noexist)
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