VirtualBox

Changeset 3324 in kBuild for trunk


Ignore:
Timestamp:
Apr 17, 2020 1:14:39 AM (5 years ago)
Author:
bird
Message:

kDepObj: Added code for parsing /ZH:SHA_256 as produced by 14.16.27023.

File:
1 edited

Legend:

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

    r3315 r3324  
    703703        uSrc.pb = uSrcFiles.pb + off;
    704704        u16Type = uSrc.pu16[2];
    705         cbSrc = u16Type == 0x0110 ? 6 + 16 + 2 : 6 + 2;
     705        switch (u16Type)
     706        {
     707            case 0x0110:    cbSrc = 6 + 16 + 2; break;  /* MD5 */
     708            case 0x0214:    cbSrc = 6 + 20 + 2; break;  /* SHA1 */ /** @todo check this */
     709            case 0x0320:    cbSrc = 6 + 32 + 2; break;  /* SHA-256 */
     710            default:        cbSrc = 6 + 0  + 2; break;
     711        }
    706712        if (off + cbSrc > cbSrcFiles)
    707713            return kDepErr(pThis, 1, "CV source file entry at %08" KX32_PRI " is too long; cbSrc=%#" KX32_PRI " cbSrcFiles=%#" KX32_PRI,
     
    722728         */
    723729        depAdd(&pThis->Core, pszFile, cchFile);
    724         if (u16Type == 0x0110)
    725             dprintf(("#%03" KU32_PRI ": {todo-md5-todo} '%s'\n",
    726                      iSrc, pszFile));
    727         else
    728             dprintf(("#%03" KU32_PRI ": type=%#06" KX16_PRI " '%s'\n", iSrc, u16Type, pszFile));
     730#ifdef WITH_DPRINTF
     731        dprintf(("#%03" KU32_PRI ": ", iSrc));
     732        {
     733            KU32 off = 6;
     734            for (;off < cbSrc - 2; off++)
     735                dprintf(("%02" KX8_PRI, uSrc.pb[off]));
     736            if (cbSrc == 6)
     737                dprintf(("type=%#06" KX16_PRI, u16Type));
     738            dprintf((" '%s'\n", pszFile));
     739        }
     740#endif
    729741
    730742
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