VirtualBox

Changeset 1950 in kBuild for trunk


Ignore:
Timestamp:
Oct 26, 2008 5:19:51 AM (16 years ago)
Author:
bird
Message:

file.c: Workaround for borked double colon rules when doing parallel builds.

File:
1 edited

Legend:

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

    r1945 r1950  
    869869#endif
    870870        expand_deps (f);
     871#ifdef KMK
     872  /* This is a HACK to work around the still broken test #9 in
     873     features/double_colon.  It produces the wrong result if the build is
     874     parallel because of changed evaluation order.  Just make these
     875     problematic rules execute in single field till a proper fix is
     876     forthcomming...  */
     877
     878  for (file_slot = file_slot_0; file_slot < file_end; file_slot++)
     879    if (   (f = *file_slot) != 0
     880        && f->double_colon
     881        && (   f->double_colon != f
     882            || f->last != f))
     883      for (f2 = f->double_colon; f2 != 0; f2 = f2->prev)
     884        f2->command_flags |= COMMANDS_NOTPARALLEL;
     885#endif
    871886  free (file_slot_0);
    872887
Note: See TracChangeset for help on using the changeset viewer.

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