<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJy1U01v2zAM_TX2hYjhj7iJDz60C4ruUGxAgB12GWSZtrXIkiFKCbJfP8ptthYYdhkGCPogqSeS76mz_bV9Pn75ABo9wdUGkNZ4ZzX4CcFfFwQ7wCRoUmaEQNiDMtBjF0beDDaDjx6kMNDh7abmmO4KSfn49QkGLUYQBDZ4rQx7JnSYVPeQ1A-T9wvxniN59FZSNivpLNnBZ9LObESzCcSrXBaeu6B0z6vDgVGMRN7_mJLq8azwklSHmc5yU-zypD4k5f7_wZdNkh-S_P5l_hQceBRz7A7Fuh6UOZ7U_KcsRuWn0L2-_iub-LYyFO-UDQjTr83XwiN5cKhREMK5yJqsBOJmE3w-PBAM1q2BkZ0XquJVxl60YDhQAygm9flQrw6H7JrR9ATHp_uyvuOEI6krUZwhG7-xdWX0YoPuI6ejQ-EjktTCjBupGT-6KCyLdf6VZbooLycgy_lw-AVXSbxV0k1Ba5o3GcUqsrRvq76pGpGK4Cfr2pM9BU2TMGlwuv1L_7Q-35bN4ux3lLGTiihgJLWu9tUundotNluxq4Us874Yhr6628l8d7cTQtbDtsBUiw41tcwcU5b--5OqLfOSR1HnRV2XRZbvsRddPuRC7rum3CfbHGehdBZxMuvG1LUrJP8qYqdW5Om3UxCp0SDeMvTK6_Vw44SNcHxHCAvvKapC6NE6LmBexSKFloFlpayJv3pQmomaUJ4ozO-_NeswXatq15J-AqXeX14>53837</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-cl] Support /ZH (Hash algorithm for calculation of file checksum in debug info)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          kokulshan
      </td>
    </tr>
</table>

<pre>
    MSVC lets you control the type of hashing used in debug info. It can be controlled by /ZH flag as outlined here: [https://docs.microsoft.com/en-us/cpp/build/reference/zh?view=msvc-170](https://docs.microsoft.com/en-us/cpp/build/reference/zh?view=msvc-170)

Our team uses [BinSkim](https://github.com/microsoft/binskim) and the latest release v1.9.2 scans PDBs for the hash type and complains if its MD5 and recommends SHA256 using /ZH:SHA_256. It would be great if clang-cl could support /ZH switch so that we can control the hashing type used in PDBs.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1Uk1r3DAQ_TX2ZVjjj7heH3xIuoT0EFpY6KGXIstjW11ZMhppl-2v78jJtgmU3gpCEprRmzfvTW-Ha_d8_PoRNHqCqw0grfHOavAzgr-uCHaEWdCszASBcABlYMA-THwZbQafPEhhoMfbT805_RWS8vHbE4xaTCAIbPBaGY7M6DCp7iGpH2bvV-I7Z_IarKRsUdJZsqPPpF34Ec0uEJ9yXXnvg9IDnw5HRjES-f5zTqrHs8JLUh0WOstd0eRJfUjK_f-DL9skPyT5_cv-OTjwKJaoDsW-HpQ5ntTyNxaT8nPoX6v_ZhNrK0PxT9mCMMMmvhYeyYNDjYIQzkXWZiUQi03w5fBAMFq3JUZ3XqyKXxl71YLhQI2g2NTnQ70FHHJoQTMQHJ_uy_oDE46mbkYxQ378zq-boxcb9BA9nRwKH5GkFmbaSc34MURhXa3zry7TRXk5A1nmw-kX3Ebi7STdJmijeRuj2EWWDl01tFUrUq-8xo4FvNViBeH4rhAL-hS7FXqyjrVcNhGk0DKwXMqaOK2j0kxgRnmisLwfV9Y3DU53_3BF6_Pt2K3O_kAZ_VFEAeOo1NW-atK527ftfmzau6KVWDRN3TYt4h02HJeyGPJUix41xXa4jVR1ZV7yKuq8qOuyyPI9DqLPx1zIfd-W--Qux0UoncXCmXVT6rqNA1MnDmpFnv4EBZGaDOINXwQ_W9ed7ClomoVJN8LdxvYXwUJJJg">