VirtualBox

Changeset 3046 in kBuild


Ignore:
Timestamp:
May 15, 2017 12:15:05 PM (8 years ago)
Author:
bird
Message:

kbuild_lookup_variable_n: Don't simplify SDK_ReorderCompilerIncs_INCS variables, they must be expanded dynamically all the time to support different compilers.

File:
1 edited

Legend:

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

    r2861 r3046  
    613613                      ("%u != %u %.*s\n", pVar->value_length, (unsigned int)strlen(pVar->value), (int)cchName, pVar->name));
    614614
    615         /* Make sure the variable is simple, convert it if necessary. */
    616         if (pVar->recursive)
     615        /* Make sure the variable is simple, convert it if necessary.
     616           Note! Must NOT do this for the dynamic INCS of sdks/ReorderCompilerIncs.kmk */
     617        if (!pVar->recursive)
     618        { /* likely */ }
     619        else if (   cchName < sizeof("SDK_ReorderCompilerIncs_INCS.") - 1U
     620                 || pszName[0] != 'S'
     621                 || pszName[4] != 'R'
     622                 || memcmp(pszName, "SDK_ReorderCompilerIncs_INCS.", sizeof("SDK_ReorderCompilerIncs_INCS.") - 1U) == 0)
    617623            kbuild_simplify_variable(pVar);
    618624    }
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