VirtualBox

Changeset 3056 in kBuild for trunk/src


Ignore:
Timestamp:
Sep 15, 2017 4:51:24 AM (8 years ago)
Author:
bird
Message:

redirect: Added trick for skipping fork+exec when dealing with nested kmk_[builtin]_redirect statements. This works around problems when generating tstAsmStructsHC.h using a VBOX_NM macro that already uses kmk_builtin_redirect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/redirect.c

    r3053 r3056  
    11211121            if (chOpt == '-')
    11221122            {
    1123                 /* '--' indicates where the bits to execute start. */
     1123                /* '--' indicates where the bits to execute start.  Check if we're
     1124                   relaunching ourselves here and just continue parsing if we are. */
    11241125                if (*pszArg == '\0')
    11251126                {
    11261127                    iArg++;
    1127                     break;
     1128                    if (    iArg >= argc
     1129                        || (   strcmp(argv[iArg], "kmk_builtin_redirect") != 0
     1130                            && strcmp(argv[iArg], argv[0]) != 0))
     1131                        break;
     1132                    continue;
    11281133                }
    11291134
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