<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58558>58558</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            LLVM build system error on Windows (zstd)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Hello!

I am using an LLVM package maintained by the conda-forge project:

https://github.com/conda-forge/llvmdev-feedstock

Recently the LLVM package was updated from version 15.0.2 to 15.0.3. Additionally, the conda-forge developers backported this patch to their 15.0.3 package:

https://github.com/llvm/llvm-project/issues/58205

After the update, I am experiencing the following CMake failure (apparently related to zstd) in the CI of one of my projects:

https://github.com/bluescarni/heyoka/actions/runs/3300936955/jobs/5445923768#step:5:375

The failure seems to happen only on Windows system (Linux and OSX are apparently fine).

The CMakeLists.txt of my project is, for reference, here:

https://github.com/bluescarni/heyoka/blob/master/CMakeLists.txt

Downgrading to llvm 15.0.2 fixes the issue.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylVMtu2zAQ_BrpQkSQqUesgw5ugqABHBRoi7ZXUlxZjClSIKnY7td3SceN3F4CBLDMXVGcnZldiRtxaj-DUiahqyS_T_LN-f-RsJHMTuodYZpstz-eyMS6PdsBGZnUHi8QhJ-IH4B0Rgt20xuLu5M1z9D5pNgs4QbvJxfu0Qf87aQfZp51ZsRkcRgzpV5GAS83PYBw3nT7JcpX6EB7dS56xenAHJknwTyS6q0ZyQtYJ40mqyrLM0q8OUdFRjZCSI9bTKlTQu_-E4DVQZkJzxOO6JOxAdQP0mE13w0BC89I-4p44fB-xUHj63JzsYs-SOdmcBhUa5pXS6hN78FGnmeJgXXsDxyRpgTdhTaF_d5gJw8hu3tie8yZVLMFktA1myZmz-5ZUNEoFPLbeZHQhkgdz989EtMToyEs4-nSTPd-bVyhiI5ZLTEZ4GT2DAPWBceDODvHpSjyvCnqpqoweTY86i7LqqHFbb1OaOE8TFihwqu4vXLj-_CmywGMLugYUB5oZI7ysOs_pRbm4Ig7Ic4Y5G-lno84yoJ8-faLoBNkYUiPw4wuZP-WiSZupfMu80d_7QmRLvQBZwb97AGRutiYAcOP2sWV4biMDNlbDK55LKHvzUHvLBNxAAwJI3UZ-V4ewcWuxsnKUmhXdV1XtKzqdSraQjRFw1IvvYI2vkx8lkpcPANrUdrCSzTxdVrS2ar2I_NdVet0aMtCUFbltOk4W5V1TXnf53V9S5sVbUTfp4pxUK5Nqk8JpRoOZyEYJ9V9KluaU7rKabHCx-k6g4ZD0dCS9QVnVVMmZQ74qVJZ4JHhq53aNlLi887hpop-_t1kzsmdBojlEJ_NfjC2fWtQGqu3kf0fCXutzQ">